Skip to content

Anuradhagupta28/Travelopia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Traveltopia Travel Form

A form for travellers to request a trip via.

Getting Started

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 -y

2.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.

Inside /travelopia-backend

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.0

4.start the back-end development server.

Inside /take-home-test

5.Apply your back-end server to travelopia-frontend

Inside .env create this:

  REACT_APP_SERVER_URL= http://localhost:8080

Now your frontend is connected with backend

6.Start the front-end development server.

Inside /take-home-test

  npm run start

7.To run test cases

Inside /take-home-test

  npm run test

Your project will get open in browser on : http://localhost:3000/

And Cypress will open

Inside cypress tab

SELECT E2E testing

Then select your browser and click on start testing

cypress\e2e will appear inside it click on

travel.specs

Your test cases will run

Thank you

About

A form for travellers to request a trip via.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published