This is a backend API built using Express.js framework for an e-commerce website. The API provides several features including:
- Product Catalog
- Shopping Cart
- Payment Gateway
- Order Management
- User Profile
- Search and Filtering
- Reviews and Ratings
- Wish List
For development, you need to have node installed and npm package installed in your environment.
Just go to the Nodejs website and download the installer. in addition, make sure you have
gitavailable in your path.npmmigth need it. Find it here
Refer to the documentation and offical npm website npm website
npm install npmclone the project, by running the commands below in your terminal.
git clone https://github.com/atlp-rwanda/vikings-ec-bn.gitcd vikings-ec-bnpackage installation
npm installBefore running the project locally, make sure you have all required environment variables in your .env file. you can find the required environment variables in
.env.examplefile.
Run migrations
npm run migrateRun seed
npm run seeddevelopment mode
npm run devtesting mode
npm run testReset database
npm reset:dbReplace {port} with your port on which development server is running ex:http://localhost:5000/api-docs
http://localhost:{port}/api-docsdocker-compose up -d