A form for travellers to request a trip via.
To develop the application locally, follow the following steps:
1.Install all dependencies.
Open your command-line interface (such as Terminal or Command Prompt. Navigate to the root directory of your React app. Run the following command to initialize a new package.json file if you haven't already done so:
npm init -y2.Start a MongoDB database server and acquire the connection string.
You can use MongoDB Atlas or start a local instance via a local installation of MongoDB. Make sure to whitelist your IP address while using Atlas.
3.Create a .env file in the back-end and add your MongoDB server connection string to it.
REPO Link= https://github.com/Yash0922/Travelopia_backend
Use This backend Deploy link=https://travelopia-backend.vercel.app/
Use for POST data=https://travelopia-backend.vercel.app/addData/
Use for GET data=https://travelopia-backend.vercel.app/info/
`MONGO_URL`=mongodb+srv://name:password@cluster0.ss532hp.mongodb.net/travelopiaData?appName=mongosh+1.8.04.start the back-end development server.
5.Apply your back-end server to travelopia-frontend
Inside .env create this:
REACT_APP_SERVER_URL= http://localhost:8080Now your frontend is connected with backend
6.Start the front-end development server.
npm run start7.To run test cases
npm run testYour project will get open in browser on : http://localhost:3000/
And Cypress will open
SELECT E2E testing
Then select your browser and click on start testing
cypress\e2e will appear inside it click on
travel.specs