Welcome to our Express-based travel planning web application! This project utilizes Express for the backend and PugJs as the template engine. The website aims to simplify travel planning by enabling users to find flights to their desired destinations and calculate currency exchange rates.
Hosted on onrender.com. You can view the live demo here.
The site requires roughly 50 seconds to spin up if it is not actively used.
- Node/Express
- PugJs
- Flight Search: Users can search for flights to their chosen destinations.
- Currency Exchange: The platform offers a currency exchange feature to calculate current exchange rates.
- Backend Integration: We leverage backend integration with third-party APIs to provide up-to-date flight information and exchange rates.
Click here to view our project document and planning and resources used.
To get a local copy up and running follow these simple example steps.
- Get a free Exchange Rate API Key at https://www.exchangerate-api.com/
- Get a free unofficial Sky Scanner API Key at https://rapidapi.com/ntd119/api/sky-scanner3
- Fork the repo. Instructions can be found here
- Install NPM packages
npm install
- Enter your API keys in your
.env
like below. You can view a template in.env.template
.PORT = 3000 SESSION_SECRET = GENERATE SECRET USING PASSWORD GENERATOR SKYSCANNER_KEY = API_KEY_HERE EXCHANGE_KEY = EXCHANGE_API_KEY_HERE SKYSCANNER_URL = https://sky-scanner3.p.rapidapi.com/flights/search-roundtrip? EXCHANGERATE = https://v6.exchangerate-api.com/v6/
- To run the server, type
npm run dev
in your terminal. - The server will be visible on
localhost:3000
.