Skip to content

Repository files navigation

Train Tracker Server

Node/Express API for Train Tracker, backed by PostgreSQL and protected with Auth0 JWT middleware.

Setup

git clone https://github.com/mpaustin/train-tracker-server.git
cd train-tracker-server
npm install
cp .env.example .env
npm start

Configure .env with your PostgreSQL connection values:

PORT=5000
DB_USERNAME=
DB_HOST=localhost
DB_DATABASE=train_tracker
DB_PASSWORD=
DB_PORT=5432

Scripts

npm start
npm run server
npm test

npm test currently runs syntax checks for the server files.

Notes

The legacy /login route is retained for compatibility, but normal API access is handled by Auth0 JWT validation.

About

Node.js server for train-tracker.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages