View Code? Open in Web Editor
NEW
This project forked from martinock/devcamp-backend
Golang app with postgre SQL. Also tutorial to optimisation and log best practice
Dockerfile 3.59%
Go 45.85%
Shell 30.95%
PLpgSQL 19.60%
devcamp-backend's Introduction
Simple Golang Apps with PostgreSQL
Prerequisites:
- Docker
How to run:
- Run
sudo chmod +x wait-for-it.sh
- Run
sudo docker-compose up
- Populate docker postgres with data.
cat devcamp.pgsql | docker exec -i <your-db-container> psql -U postgres
- Open your browser and type
localhost:3000
. Route /
is just a welcome page, next route is /user/:user_id
devcamp-backend's People
Contributors