All endpoints are handled in programController.ts.
listen.ts binds the app to the relevant port it can listen for requests on.
db directory contains all of the required seeding and local database files.
npm installRun this script to initialise the local databases
npm run setup-dbsTo connect to the local databases, run the following commands
echo "PGDATABASE = admin_dashboard_test" > .env.test
echo "PGDATABASE = admin_dashboard" > .env.developmentRun this script to seed the development database
npm run seedRun this script to deploy the API locally
npm startRun this script to test the API endpoints
npm t test.tsNode.js: v21.5.0
TypeScript: v5.5.4
Express: v4.19.2
PostgreSQL: v14.12