This repo contains a basic Node and Express app to get you started in constructing an API. To get started, clone this repo and run npm i in your terminal at the project root.
Some of the technologies used in this application includes:
- Express
- JSON Web Token
- BCrypt
- PostgreSQL
- NodeJS
- Jasmine
First you need to rename your .env-example file to .env to setup the environment variables
- Make Sure that you have Postgres Installed on your local machine
- Create two DBs (one for dev and one for test) i.e storefront and storefront_test
- Update your .env file with the corresponding data
- Run
db migrate upto apply DB migrations to your DB
Make sure to fill in the rest of the environment variables as appropriate
- Run Application:
Application runs on:
localhost@user ~ npm run watchlocalhost:3000 - Run Tests
To
localhost@user ~ npm test