8000 GitHub - Borabi9/todo_go: My portfolio for gin gonic web app
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Borabi9/todo_go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Todo App

The simple todo web application written by Go programming language.

prerequisite for Local Env.

  1. golang-migrate
    • You can install from here
  2. sqlc
    • You can install from here
  3. gomock To setup gomock after git clone this project install gomock inside terminal

go install github.com/golang/mock/mockgen@v1.6.0

and append this code snippet in your .zshrc file

# GOMOCK
export PATH=$PATH:~/go/bin

after that restart your terminal or run source ~/.zshrc

And you need MySQL in your local machine.

Usage of make commands

You can use make commands for your local development.

make {KEYWORD} down below

  • createdb
    • create database for application
  • dropdb
    • drop database for application
  • migrateup
    • migrate database for application
  • migratedown
    • rollback migration for application
  • sqlc
    • auto generate model and db query from SQL
  • mock
    • auto generate mocking features for test environment
  • test
    • run all tests
  • server
    • start the application

About

My portfolio for gin gonic web app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0