Made with go and postgresql.
cmd/
contains the main.go file.internal/
contains the main logic of the app.internal/models/
contains the models of the app.internal/db/
contains the database logic.internal/services/
contains the services of the app.internal/handlers/
contains the handlers of the app.
web/
contains the website files.
To run it:
sudo docker compose up --build
sudo docker compose -f docker-compose.dev.yml up --build
To use the db:
psql mydatabase -U myusername
To see all tables:
\dt
To see all rows in a table:
SELECT * FROM mytable;
Air for live reload: https://medium.easyread.co/today-i-learned-golang-live-reload-for-development-using-docker-compose-air-ecc688ee076
SSL certificate: https://goenning.net/blog/free-and-automated-ssl-certificates-with-go/