Welcome to the backend codebase of ListMaker, a list-making application begun in February and launched in June of 2023. ListMaker is in ongoing development, with improvements and new features planned. Read on for details!
The following variables are required in .env
or .env.local
to run backend server locally:
PORT = 3001 // or another port aside from 3000
FRONTEND_URL = "http://localhost:3000" // default CRA port
DEV_DB = "http://localhost:5432/<database-name>" // use local Postgres database name
JWT_SECRET = "<secret-string>" // use a custom secret string
GEOCODING_API_KEY = "<api-key>" // requires a Google Geocoding API key
Production
npm run start
: start production serverbuild
: run TypeScript compilerdb
: tear down and build database
Heroku
postinstall
: executesnpm run build
(see above) when updating remote server withgit push heroku main
Testing
npm run start:dev
: start testing server with nodemonnpm run db:dev
: tear down and build database with nodemontsc -w
: run TypeScript compiler in watch mode
TypeScript
Node
Express
Axios
bcrypt
body-parser
cors
dotenv
express-validator
jsonwebtoken
node-postgres
slugify