a Backend API for an E-Commerce Application
Your application must make use of the following libraries:
- Postgres for the database
- Node/Express for the application logic
- dotenv from npm for managing environment variables
- db-migrate from npm for migrations
- jsonwebtoken from npm for working with JWTs
- jasmine from npm for testing
npm install
PGHOST=localhost
PGDATABASE=##
PG_TEST_DATABASE=##
PGUSER=postgres
PGPASSWORD=##
BCRYPT_PASSWORD=##
SALT_ROUNDS=10
JWT_SECRET=##
API_PORT=3000
DATABASE_PORT=5432
ENV=dev
add your own database name, postgres password, bcrypt passowrd and jwt secret.
db-migrate up
npm start