https://github.com/dvhcoding/clothing-server
https://github.com/dvhcoding/clothing-server
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dvhcoding/clothing-server
- Owner: DVHcoding
- Created: 2024-03-03T19:03:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T16:55:26.000Z (over 2 years ago)
- Last Synced: 2025-05-08T17:55:36.722Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://clothing-server.vercel.app
- Size: 55.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ecommerce Backend Server
This is a Node.js backend server for an ecommerce application.
## Features
- **User Authentication**: Implement user authentication using JWT (JSON Web Tokens).
- **Product Management**: CRUD (Create, Read, Update, Delete) operations for managing products.
- **Order Management**: Implement order creation, retrieval, and management.
- **Payment Integration**: Integrate with payment gateways for processing transactions.
- **Logging**: Implement logging for debugging and monitoring purposes.
## Technologies Used
- **Node.js**: JavaScript runtime for building server-side applications.
- **Express.js**: Web application framework for Node.js.
- **MongoDB**: NoSQL database for storing product and user information.
- **JWT**: JSON Web Tokens for user authentication.
- **Stripe**: Payment gateway for processing transactions.
## Prerequisites
Before running this server, ensure you have the following installed:
- Node.js (version >= 12.0.0)
- MongoDB
- Stripe API keys (for payment integration)
## Installation
1. Clone this repository:
```bash
git clone https://github.com/DVHcoding/clothing-server.git
```
2. Navigate to the project directory:
```bash
cd backend
```
3. Install dependencies:
```bash
npm install
```
## Configuration
1. Create a `.env` file in the root directory of the project.
2. Add the following environment variables:
```plaintext
PORT
MONGODB_URI
JWT_SECRET
STRIPE_SECRET_KEY
...
```
3. Replace `your_mongodb_connection_string`, `your_jwt_secret`, and `your_stripe_secret_key` with your actual MongoDB connection string, JWT secret, and Stripe secret key respectively.
## Usage
1. Start the server:
```bash
npm run dev
```
2. The server will start running on the specified port (default is 3000).
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.