Table of Contents
Circuit City is an online market for the distribution of everything electrical, from hand tools to large machinery, circuit city aims to provide a comprehensive marketplace for professionals, resellers and consumers in the electrical industry.
You can read the full API documentation at link.
- Olayinkascott Andee
- Role: Developer
- Andee's LinkedIn
/controllers
: These are functions that generate response to requests ./middlewares
: These intercept requests before it gets to the controller./models
: Data declaration for each of the resources./routes
: These contains the available routes for each resource./tests
: Unittests for functions.package.json
: This file contains the project's metadata.server.js
: This is the entry point into the application.
Prerequisites
- Create a Mongodb Atlas account at link. Afterwards, create a new database with the name
CircuitCity
- Create a cloudinary account at link
Installation Steps
- Clone the Repository.
git clone [email protected]:scottandee/circuit_city.git
- Run
npm install
npm install
- create a
.env
file and fill it with the data below:Note:# Environment Variables PORT=5000 # DB Config DB_USERNAME='value' DB_PASSWORD='value' # Bcrypt salt SALT=value # JWT Secret Key JWT_SECRET_KEY=secret key value # Cloudinary CLOUDINARY_CLOUD_NAME='' CLOUDINARY_API_KEY='' CLOUDINARY_API_SECRET=''
value
is only a placeholder and should be substituted with the actual values.
- run
npm server.js
.
Here are some steps to follow when contributing to this project:
- Fork the repository
- Clone the repository into your machine
- Install all dependencies with
npm install
- Make your changes
- Write tests for your changes and make sure they pass
- Commit your changes
- Push your changes to your fork
- Create a pull request to the original repository
This project is licensed under the MIT License.
Copyright (c) 2024 Olayinkascott Andee.
See the LICENSE file for more information.