Code Monkey home page Code Monkey logo

golang-boilerplate's Introduction

Kodingworks: Go Boilerplate Test

This apps was deployed at heroku: https://kodingworks-test.herokuapp.com/

Test the api with (postman):

  • Download the file kodingworks.postman_collection.json for api docs
  • Smport to postman
  • Setup your environtment with key BASE_URL and value to https://kodingworks-test.herokuapp.com
  • Try to send request of each module

Clone & Run in your machine

Preparation, Create database with:

Db Name: kodingworks
DB pass: kodingworks
DB user: kodingworks

Makefile Command:

  • make serve -> run the application
  • make migrate -> migrate with migrate image
  • make native_migrate -> migrate with migrate binary
  • make migrate_clean -> clean the migrate dir
  • make test -> run the test
NOTE: Modify the config.json and adjust it to your needs

Project structure

cmd/kodingworks

Directory for main.go file

db/migrations

Collecting all migrations from every module and put in here together

module example guests

This is the module, inside this dir we have api.go,handler.go, and model.go

test

Here where we put our test from all module ~not ready yet~

utils

Here is out utils/extensions to reduce the code and not repeat the same code

Stack

Reference Go project layout https://github.com/golang-standards/project-layout

Database: postgres 1.12

Go: go1.12.17 darwin/amd64

golang-boilerplate's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.