This application is for owners of Bike service stations. It helps the owners to list all the services they offer. Customers can choose one or more services to book
- Node.js
- npm (Node Package Manager)
-
Install dependencies for both the client and server:
cd client npm install cd server npm install
-
Start the backend server:
cd server npm start
-
Start the frontend development server:
cd client npm run dev
client/
: Contains the React frontend code for user interface.server/
: Contains the backend code for handling backend functionalities.
- email: [email protected]
- password: 123456789
- Kinda User Template and more flexible.
- Admin have all the CRUD operations over services and bookings.
- Used Nodemailer for sending email notifications to users and admin.
- Used Cloudinary and multer for uploading images and fetching images.
- Used Material UI framework for user-friendly Interaction.
- React
- Material UI
- Express.js
- Node.js
- MongoDB
- Nodemailer (for sending emails)
- Cloudinary (for image handling)
- Should be able to create / edit / delete all his services and their details - View a list of all bookings ( pending, ready for delivery and completed) - View details of each booking
- Mark a booking as ready for delivery
- Mark a booking as completed
- Receive an email whenever a booking is made
- Should be able to register for an account with his email address and mobile number - Book a service at a particular date
- See the status of his booking
- See all his previous bookings
- Receive an email as soon as his booking is ready for delivery# Bike-Services
import { dirname } from 'path'; import { fileURLToPath } from 'url'; import path from 'path';
const __dirname = dirname(fileURLToPath(import.meta.url));
app.use(express.static(path.resolve(__dirname, './public')));
app.get('*', (req, res) => { res.sendFile(path.resolve(__dirname, './public', 'index.html')); });
app.use("*", (req, res) => { res.status(404).json({ msg: "not found" }); });
server.js "scripts": { "setup-project": "npm i && cd client && npm i", "server": "nodemon server", "client": "cd client && npm run dev", "dev": "concurrently --kill-others-on-fail " npm run server" " npm run client"" },
client