Skip to content

endikallanomatxin/open-curriculum

Repository files navigation

Open curriculum

Made with go and postgresql.

Code organizaton

  • 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.

Manual

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;

Resources

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/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published