Welcome to the Course Online Shop Backend repository! This project serves as the backbone of the Course Online Shop, handling data management, user authentication, and course transactions. 🚀
The backend provides a robust API for the Course Online Shop, enabling the frontend to perform CRUD operations, manage user sessions, and process payments. It is built with scalability and security in mind.
- Node.js 🟢
- Express.js 🌐
- MongoDB 🍃
- JWT for authentication 🔒
Follow these steps to set up the backend locally:
- Node.js (v16 or higher) 📦
- MongoDB (local or cloud instance) 🗄️
- npm or Yarn 🧶
-
Clone the repository:
git clone https://github.com/Sina-Ghiasi/course-online-shop-backend.git
-
Navigate to the project directory:
cd course-online-shop-backend
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and configure the following environment variables:PORT=5000 MONGO_DB_URI=mongodb://localhost:27017/course-shop JWT_ACCESS_TOKEN_SECRET=your_jwt_access_secret JWT_ACCESS_EXPIRES_IN=1h JWT_OTP_TOKEN_SECRET=your_jwt_otp_secret JWT_OTP_EXPIRES_IN=10m JWT_RESET_PASS_TOKEN_SECRET=your_jwt_reset_pass_secret JWT_RESET_PASS_EXPIRES_IN=15m KAVEEGAR_API_KEY=your_kaveegar_api_key KAVEEGAR_API_TEMPLATE=your_kaveegar_template SPOT_PLAYER_API=your_spot_player_api_key
-
Start the server:
npm start
The API should now be running at http://localhost:5000
. 🎉
This backend powers the API for the frontend application. Check out the related repository:
We welcome contributions! Here's how you can help:
- Fork the repository 🍴
- Create a new branch:
git checkout -b feature/your-feature
- Commit your changes:
git commit -m "Add your feature"
- Push to the branch:
git push origin feature/your-feature
- Open a Pull Request 📬
This project is licensed under the MIT License. See the LICENSE file for details.