This repository contains the backend application of an e-commerce website developed by Andela Team Crafters
- Table of content
In our project we developed an ecommerce application which is a platform where buyers and sellers meet to interact. Each Seller will be able to register, post their products, and fully manage their stock. Buyers will be able to see all the products on the platform, add and remove products to their shopping carts, and buy from any seller where they will be able to pay via the platform.
For those who are interested to use it locally,he/she is required the following:
- Node.js
- Packages
- Postgres database
- Git
- Clone the repository from github https://github.com/atlp-rwanda/e-commerce-crafters-bn.git
- Run
npm install
to install all package dependencies - Copy the environment configuration:
cp .env.example .env
you can update the values of .env file with yours. - To run migrations into Postgres use the following command:
npx sequelize-cli db:migrate
sequelize-cli
: This refers to the Sequelize Command Line Interface (CLI), which provides commands for interacting with Sequelize, including creating migrations, models, seeders, and running migrations. - To run seeders into Postgres use the following command:
npx sequelize-cli db:seed:all
- Run the project using this command
npm start
- running test by
npm test
To contribute to this project:
- Clone the repository
- Create your own branch to avoid direct pushing to main brach without creating pullrequest and get reviewed.
- feature(ft):
git checkout -b ft-name-of-the-feature-bn-TrelloId
- chore(ch):
git checkout -b ch-name-of-the-chore-bn-TrelloId
- bug(bd):
git checkout -b bg-name-of-the-bug-bn-TrelloId
- Then you can commit any changes you made by:
git commit -m "your commit message"
- Push your changes to the branch you created
git push origin your-new-branch-name
- create a pull request and wait for review from other collabolators
The following are steps to create your api documentation:
- Navigate to the location
src/docs
. Create a.yaml
file. - Write your documentation in the file.
No need to set up Swagger-related things in
server.ts
again.⚠️ You must know that YAML strictly follows indentation
Deployed_link:https://e-commerce-crafters-bn.onrender.com/
This project is licensed under the MIT License. See the LICENSE file for detail.