This repository contain the KRISHNA BOOKING APP Code build using the React.js for Frontend and Node.js for Backend.
- User can Login using a JWT
- Filter Search Functionality
- Functionality like Add hotel, Edit Hotel, Book Hotel
- Stripe Payment Integration
- React.js
- Express.js
- MongoDB
- TailWindCSS
-
Clone the repository and navigate to the directory:
git clone https://github.com/krishna102001/krishna-booking-app.git
-
In terminal run the command:
cd frontend npm i
-
Create a
.env
files in root directory and add the following environment variables:VITE_API_BASE_URL=`http://localhost:4000` VITE_STRIPE_PUB_KEY="{Setup Your Public key of Stripe Payment}"
-
Start the frontend server:
npm run dev
The frontend server should now be running on
http://localhost:5173
.
-
In terminal run the command:
cd backend npm i
-
Create a
.env
files in root directory and add the following environment variables:MONGO_CONNECTION_STRING="{Your MongoDB driver Url}" JWT_SECRET_KEY="{Enter The Secret Key}" FRONTEND_URL=`http://localhost:5173` CLOUDINARY_CLOUD_NAM = "{Setup Cloudinary Name}" CLOUDINARY_API_KEY = "{Setup Cloudinary API Key}" CLOUDINARY_API_SECRET = "{Setup Cloudinary API Secret}" STRIPE_API_KE = "{Setup STRIPE API Key}"
-
Start the backend server:
npm start
The backend server should now be running on
http://localhost:4000
.