- Project Concept : By using the server, we can keep a lot of necessary information in one place and use it as needed.
- Problem Solved : Data server completes a website by storing information and making it user friendly.
- Secure login and role-based access control for administrators and employees.
- Data is managed through CRUD operations
- Stripe has been used for payment through which payment can be made easily.
JWT, Stripe, MongoDB
- Clone the repository:
- First, you need to clone the client and server side. Open your terminal and type:
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
- First, you need to clone the client and server side. Open your terminal and type:
- Open files in VS Code:
- After opening the server-side files in VS Code, install npm dependencies both file:
npm install
- After opening the server-side files in VS Code, install npm dependencies both file:
- Environment setup:
- In your server side configure environment variables by creating a
.env
file in the root directory. Add the following variables:ReplacePORT=3000 MONGODB_URI=mongodb://localhost:27017/art_and_craft_db JWT_SECRET=your_jwt_secret_key_here
your_jwt_secret_key_here
with your actual keys.
- In your server side configure environment variables by creating a
- Access the server :
- run code is
nodemon index.js
ornpm run dev
and also check which file are you now. - Open your web browser and navigate to
http://localhost:3000
to view the application locally.
- run code is