Skip to content

DarrinFong/backend_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backend_template

Learning Go with a generic Go backend for an online store.

Under construction 👷

Run server

go run main.go To start server (using hardcoded mocks to test routes)

Access via http://localhost:8000/

Route method result
/inventory/ GET {"id": {models.item}...}
/inventory/:id GET {models.item}

Run unit tests

go test ./... To run unit tests (using sqlmock for sql db)

[IN PROGRESS] Setup containerized SQL Database (Postgres)

cd postgres

docker build ./ -t postgres

docker run -p 5432:5432 --name=postgres postgres

About

Generic Go backend for an online store.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages