Build a JavaScript API based on a requirements given by the stakeholders. You will architect the database, tables, and columns to fulfill the requirements. Create a RESTful API to be accessible to the frontend developer. You will also have written test, secured user information with encryption, and provide tokens for integration into the frontend.
Run prettier
npm run prettier
Run lint
npm run lint
Run tests
npm run test
Start the dev server
npm run watch
Build the project
npm run build
Run the application
npm run start
Clone the project
git clone https://github.com/AndrewGithinji/StoreFront_Backend.git
Go to the project directory
cd storefront-backend/
Install dependencies
npm install
Set up the .env
file for connecting to the database and a working authorization. .env.example
file is provided with needed keys
Run the migrations
db-migrate up
Start the docker postgres container
docker-compose up -d
Start the dev server
npm run watch
Application will run on port 3000
To run tests, run the following command
npm run test
Rancy Chepchirchir ((https://github.com/RancyChepchirchir))