A brand providing extraordinary travel experiences for customers.
To develop the application locally, follow the following steps:
-
Install all dependencies
For front-end npm install For back-end npm install
-
Start the front-end development server.
# cd front-end npm start
-
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.
-
Create a .env file in the backend folder and add your MongoDB connection url to it
# Inside /back-end/.env const CONNECTION_URL = <your_mongodb_url>
-
Star the back-end development server.
# Inside /back-end node app.js
Go to https://localhost:3000 to see the running web application.
The back-end server is available at https://localhost:3030.
For deploying, follow the following steps:
-
The frontend can be deployed on Netlify, for that create a production build and follow the steps for deployment on netlify.
-
For backend deployment platforms such as render or cyclic can be used.
Refer this doc for deployment on render: Render Deployment
To run the tests, run the following command inside the front-end
directory:
# Inside /front-end
npm test