Skip to content

kaddiya/todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo-app

Setup

  1. Setup postgresql on localhost.
  2. create a database named todo.The code assumed the user name and password to be local and the database name to be todo.
  3. make a copy of build.sh.example as build.sh. Set the appropriate database params.
  4. Make a copy of dbconf.yml.example as dbconf.yml Set the appropriate database connection params.

Migrations:

goose up

Model/Dao Generation:

xo pgsql://<user>:<passowrd>@<host>/<db_name>?sslmode=disable -o internal/models --suffix=.go

To build (a handy script to do the pre build stuff)

./build.sh

To run

go run cmd/main.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published