Code Monkey home page Code Monkey logo

fend-travel-app's Introduction

Capstone Project: Travel App โœˆ๏ธ

Final project of Udacity's Frontend Developer Nanodegree.

Overview

This capstone project is a travel app that lets users input their trip location, departure and return dates and displays weather info and an image of the location using the Geonames, Weatherbit and Pixabay APIs.

Users will see how many days they have left until departure, and get the weather forecast if their trip is within the next 16 days. Otherwise, they'll see the current weather at their destination. The app also shows the total duration of their trip.

Preview

A screenshot of the website

Instructions

Setting up the Project ๐Ÿ’ป

Fork the project Github repo, and then clone or download the zip file locally. Once you have the project locally, navigate to the project directory to install all dependencies.

cd <project directory>
npm install

Signup for API keys ๐Ÿ”‘

This project uses the following APIs:

When you sign up, you'll be able to get your personal API keys for Weatherbit and Pixabay. For Geonames you'll just need to get your username once your account is activated.

At the root of the project, create a new file named .env. Inside the file, add the following lines, replacing the stars with your personal API keys and the Geonames username.

GEOCODES_NAME=**************************
WEATHERBIT_KEY=**************************
PIXABAY_KEY=**************************

After setup ๐Ÿ”ฅ

After you've created your local copy and added your API key to the .env file, you're ready to start using it!

Use the following command to start the developer server. This should open a new window in your browser with the app running on localhost:8000

npm run build-dev

To run the production server (with express), run these commands

npm run build-prod
npm run start

This will create a dist folder with the built code. The production server runs on localhost:8082

Tests for this app have been implemented using Jest. To run tests, use this command:

npm run test

Author

  • Clarke Jacobse

Acknowledgements

fend-travel-app's People

Contributors

clarkecodes avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.