GithubHelp home page GithubHelp logo

travel-app's Introduction

~v1.0

Front End Web Developer Nanodegree - Capstone Project: Travel Planner Web App

This is a project to Udacity's Front End Web Developer nanodegree.

Overview

This is a single page web app, which includes a simple form where you enter the location you are traveling to and the date you are leaving. If the trip is within a week, you will get the current weather forecast. If the trip is in the future, you will get a predicted forecast.

It works by getting a desired trip location and date from the user, then displaying weather and an image of the location using information obtained from external APIs.

๐Ÿ‘€ Check it Out:

got-a-plan-demonstration

Project Intro

  • Building a web app that allows users to to plan their trips based on predicted weather forecasts for the location they are travelling to.

  • The goal of this project is to get practice with:

    • Setting up a server environment
    • Setting up Webpack
    • Sass styles
    • Webpack Loaders and Plugins
    • Targeting the DOM, working with objects
    • Creating layouts and page design
    • Service workers
    • Using APIs and creating requests to external urls
    • Working with Testing units
  • Language and tools for this project:

    • Node & Express: For server side development
    • js: For client side development
    • Webpack: Build tool
    • Service workers: Offline functionality
    • Jest: Testing unit
  • Project rubric:

Check out the specifications here.

Project Extension

Some extra features were included in this project:

  • Pull in an image for the country from Pixabay API when the entered location brings up no results (good for obscure localities).
  • Allow the user to remove the trip.

Getting Started

Follow the steps below to get the project running.

Clone this Github repository and use NPM to install all the dependencies listed in the package.json file:

$ git clone https://github.com/pandablue0809/travel-app/edit/main/README.md
$ cd FEND-Capstone-travel-app
$ npm install

Then, start the local server:

$ npm run build-prod
$ npm start

The app will be running in your browser on localhost:8081

Runnning the development mode

After completing the steps above, open a second terminal and start the webpack dev server:

$ npm run build-dev

The development version of the app will be running in your browser on localhost:8080
(the page will automatically update in the browser after any code change)

Testing Unit

This project has a Testing Unit to check if the main functions are working correctly. Testing is done with Jest.

To run tests you can use the following NPM command:

$ npm run test

The test results will be displayed on the terminal.

travel-app's People

Contributors

pandablue0809 avatar

Watchers

 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.