It is an open source event, make sure to follow the issue tags before commiting and also make sure to join the discord server. https://discord.gg/A9QpVUazNC
This is a full-stack project for a cab booking system. It includes both the frontend and backend components.
- Linkedin: link
- Role: Project Mentor
- Contact: For any queries related to the project, feel free to reach out on Discord or create an issue on GitHub.
-
Clone the repository:
git clone https://github.com/Itz-snj/Fullstack1.git cd Fullstack1/backend
-
Install dependencies:
npm install
-
Create a
.env
file in the backend directory and add:PORT=4000 MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret
-
Start the server:
npm start
- URL:
/user/register
- Method:
POST
- Body:
{ "name": { "firstname": "John", "middlename": "Doe", "lastname": "Smith" }, "email": "[email protected]", "password": "yourpassword" }
- URL:
/user/login
- Method:
POST
- Body:
{ "email": "[email protected]", "password": "yourpassword" }
PORT
: Server port.MONGO_URI
: MongoDB connection string.JWT_SECRET
: JWT secret key.
FullStack1/
├── backend/
│ ├── controllers/
│ │ ├── user.controller.js
│ │ └── captain.controller.js
│ ├── db/
│ │ └── db.js
│ ├── middlewares/
│ │ └── auth.middleware.js
│ ├── models/
│ │ ├── user.model.js
│ │ ├── captain.model.js
│ │ └── blacklist.token.model.js
│ ├── routes/
│ │ ├── user.routes.js
│ │ └── captain.routes.js
│ ├── services/
│ │ └── user.service.js
│ ├── .env
│ ├── app.js
│ ├── server.js
│ └── package.json
│
├── frontend/
│ ├── public/
│ │ └── index.html
│ ├── src/
│ │ ├── api/
│ │ │ └── api.js
│ │ ├── components/
│ │ │ ├── signup.jsx
│ │ │ └── ui/
│ │ │ ├── input.jsx
│ │ │ └── label.jsx
│ │ ├── lib/
│ │ │ └── utils.js
│ │ ├── pages/
│ │ │ └── UserSignUp.jsx
│ │ ├── App.jsx
│ │ └── main.jsx
│ ├── .env
│ ├── index.html
│ ├── package.json
│ ├── tailwind.config.js
│ └── vite.config.js
│
└── README.md
Added a shell script to append files in github and stage it from local to remote git repository