My niece diploma. My part is the backend (GO coding + DB + Docker).
- run in the project directory
docker compose up # the web server will start (shell #1)
docker compose --profile tools run migrate up # migration will execute (shell #2)
- open
localhost:8081
in the browser.
curl -F name=Andrey -F phone=+375291112233 -F role=teacher -F available-time=12:00 -F consult-date=15.04.2023 http://localhost:8081/consult-requests
Admin UI accessible via /admin
url. The session lifetime is 24 hours.
Credentials:
login admin
password admin
docker compose --profile tools run migrate up
docker compose --profile tools run migrate down 1
docker compose --profile tools run create-migration
https://firehydrant.com/blog/develop-a-go-app-with-docker-compose/