Skip to content

Transport to a random UK postcode and explore. With information on weather, location and chat function to provide interactive local information!

Notifications You must be signed in to change notification settings

fac29b/MapXplore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travel Mashup Project

The Travel Mashup project is a web application that provides information about the weather at random locations found via postcode. Additionally, the application displays the location on a Google Map and provides a Google Street View with a ChatGPT powered chat box to also give interactive information about the location.

Table of Contents

  1. Technologies Used
  2. Installation
  3. How to Run
  4. How to Test
  5. Deployment on AWS
  6. FAC Foundation Final Project
  7. Contributing
  8. License

Technologies Used

  • Node.js
  • Express.js
  • Fetch API for making HTTP requests
  • HTML, CSS, JavaScript for the front-end
  • Chai for testing
  • Various API's used

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/your-username/your-repository.git
  1. Navigate to the project directory:
cd travel-mashup
  1. Install dependencies:
npm install
  1. Create a .env file in the root directory and add the API keys:
openweathermapAPI=your_openweathermap_api_key
OPENAI_API_KEY=your_openAI_api_key

Replace your_openweathermap_api_key with your actual OpenWeatherMap API key. Replace your_openAI_api_key with your actual OpenAI API key.

Note: The googleAPI key is a front-end API key used and stored in the public/script.js file to interact with Google Maps APIs. It is important to secure this API key by restricting its usage to specific IP addresses. To enhance security, consider adding your IP address or the IP address of your server to the API key restrictions on the Google Cloud Console. This way, the API key can only be used from your specified IP address, reducing the risk of unauthorized usage.

How to Run

  1. Start the server:
npm start
  1. Open your web browser and go to http://localhost:3000.

How to Test

Run the following command to execute the tests:

npm test

This project uses Mocha and Chai for testing. Ensure that the server is not running while running the tests.

Deployment on AWS

The Travel Mashup project is deployed on AWS. You can access the deployed application by visiting the following URL:

Travel Mashup AWS Deployment

To access the deployed application on AWS, you can SSH into the CLI for Amazon, clone the repository using Git commands, and set it to run with PM2.

FAC Foundation final project

Project brief includes displaying APIs on a static HTML page

FAC Project brief

Contributing

If you would like to contribute to the project, feel free to fork the repository and submit a pull request. We welcome any improvements or new features!

License

This project is licensed under the MIT License.

About

Transport to a random UK postcode and explore. With information on weather, location and chat function to provide interactive local information!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published