Coder Social home page Coder Social logo

alexandrabaturina / travel-planner Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.72 MB

JavaScript-based SPA than puts together all necessary info about your trip

HTML 7.55% JavaScript 73.47% SCSS 18.99%
pixabay-api weatherbit-api geonames-api node-js webpack development-mode production-mode express-middleware service-workers jest-tests

travel-planner's Introduction

FEND Capstone Project: Travel Planner

Overview

Travel Planner is the capstone project of Udacity Front End Developer nanodegree program. It requeres to build JavaScript-based SPA than puts together information about your trip.

The goal of the project is to practice with:

  • Setting up Webpack
  • Webpack loaders and plugins
  • Responsive layouts
  • Using APIs and creating requests to external URLs
  • Dynamic DOM manipulation
  • Service workers
  • Jest tests

Features

To plan a trip, a user has to specify destination city, destination country, and start date for their trip.

image

Based on user input, Travel Planner provides the following information:

  • Number of days before the trip.
  • Typical weather for the start date if trip is less than 16 days away and today's weather otherwise.
  • Min and max temperature.
  • The picture of destination city (the most popular picture of the specified destination in Pixabay library).

image

APIs Used

Travel Planner app uses the following APIs:

Getting Started

Prerequisites

  1. Download Node.js from here.
  2. Clone this repo.
  3. cd into project directory.
  4. Install project dependencies.
npm install
  1. Get Geonames username.
  2. Get Weatherbit API key.
  3. Get Pixabay API key.
  4. In the root of the project, create the .env file.
  5. In your env file, specify the credentials you got at steps 5โ€“7.
PIXABAY_API_KEY = <your-pixabay-api-key>
WEATHERBIT_API_KEY = <your-weatherbit-api-key>
GEONAMES_USERNAME = <your-geonames-username>

Running

Test mode

To run the app in test mode, use the following command.

nmp run test

Development mode

To run the app in development mode, use the following command.

npm run build-dev

Production mode

To run the app in production mode, follow the steps below.

  1. Build the dist folder.
npm run build-prod
  1. Start the server.
npm run start
  1. Open localhost:8081 in your browser.

Authors

Alexandra Baturina

travel-planner's People

Contributors

alexandrabaturina avatar dependabot[bot] 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.