This is test work for internship position at Uptime
These params should be defined in a .env file
Param | Description |
---|---|
NODE_ENV | Define node env [development |
POSTGRES_USER | defines the postgres user |
POSTGRES_PASSWORD | defines the postgres password |
POSTGRES_DB | Sets the default db |
DATABASE_URL | postgres://[POSTGRES_USER]:[POSTGRES_PASSWORD]@localhost:5432/[POSTGRES_DB] |
Builds the app for production
Runs the app in dev
Runs the built app
Runs tests
For migrations to run, you must set DATABASE_URL env variable and then run
npm run migrate up