This project's purpose is to help Kinga track and plan her diet.
- N/A
- ✅
[email protected]
- ✅
sqlite3
- ✅ go dependencies
- ✅
sqlc
- ✅
golang-migrate
- ✅
stringer
- Install these with:
make go-deps
- ✅
-
DB_FILE="sqlite/nutrition-tracker.db" PORT="6969" # Optional, defaults to "80" or "443" depending on whether TLS is enabled TLS_DISABLED="false" # Optional, defaults to "false" TLS_CERT_FILE="certs/cert.pem" # Optional, defaults to "certs/cert.pem" TLS_KEY_FILE="certs/key.pem" # Optional, defaults to "certs/key.pem" AUTH0_DISABLED="false" # Optional, defaults to "false" AUTH0_DOMAIN="<AUTH0_DOMAIN>" # Can be found in the Auth0 dashboard AUTH0_CLIENT_ID="<AUTH0_CLIENT_ID>" # Can be found in the Auth0 dashboard AUTH0_CLIENT_SECRET="<AUTH0_CLIENT_SECRET>" # Can be found in the Auth0 dashboard AUTH0_CALLBACK_URL="https://nutrition-tracking.com/auth/callback" # Should be the same as the one set in the Auth0 dashboard COOKIE_STORE_AUTH_KEY="<KEY_TO_AUTHENTICATE_THE_COOKIE_STORE>" # Should ideally be at least 64 bytes of random data
-
make init-db
-
make build
out/nutrition-tracker <PATH_TO_YOUR_ENV_FILE>
make coverage
make unit-coverage
make integration-coverage
make create-migration MIGRATION_NAME=<MIGRATION_NAME>
make migrate-up
make migrate-down-1