Node/Express API for Train Tracker, backed by PostgreSQL and protected with Auth0 JWT middleware.
git clone https://github.com/mpaustin/train-tracker-server.git
cd train-tracker-server
npm install
cp .env.example .env
npm startConfigure .env with your PostgreSQL connection values:
PORT=5000
DB_USERNAME=
DB_HOST=localhost
DB_DATABASE=train_tracker
DB_PASSWORD=
DB_PORT=5432npm start
npm run server
npm testnpm test currently runs syntax checks for the server files.
The legacy /login route is retained for compatibility, but normal API access is handled by Auth0 JWT validation.