This is a RESTful API for managing an e-commerce platform. It includes functionalities for user authentication, product management, order processing, and more.
-
Clone the repository:
git clone https://github.com/yourusername/sylessentialz-ecommerce.git cd sylessentialz-ecommerce
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add your environment variables as needed (e.g., database connection strings, JWT secret).Example
.env
file:PORT=5000 DB_CONNECTION_STRING=mongodb://localhost:27017/sylessentialz JWT_SECRET=your_jwt_secret ELASTICSEARCH_HOST=localhost:9200
-
Start the server:
npm start
You can access the API documentation and interact with the API using Swagger UI at http://localhost:5000/api-docs
and query the routes see how it works.