The E-Commerce API with Persistent User Activity Logging is a powerful system for building e-commerce platforms with a focus on user activity tracking, enhancing user experiences, and delivering valuable insights.
- Persistent user activity logging.
- Scheduled cloud backups for data security.
- Powerful API endpoints for managing products and user activities.
- User-friendly Swagger documentation for easy interaction.
Before you begin, ensure you have met the following requirements:
- Node.js installed.
- MongoDB setup with appropriate credentials.
- Git (optional but recommended).
-
Clone the repository:
git clone https://github.com/mjavason/E-Commerce-API-with-Persistent-User-Activity-Logging.git cd E-Commerce-API-with-Persistent-User-Activity-Logging
-
Install dependencies:
npm install
-
Create a
.env
file in the project's root directory and set the following environment variables:PORT=3000 JWT_SECRET=your_secret_key MONGO_DB_NAME=your_database_name MONGO_DB_URL=your_mongodb_url
Ensure these values are set according to your specific requirements.
-
Start the server:
npm run start
The API provides a range of endpoints for managing products and user activities. You can explore these endpoints using the Swagger documentation at /docs
.
- View product details, add products, and more.
API documentation is available at /docs
using Swagger. Start the server and navigate to /docs
in your browser to view the API documentation.