Giter Club home page Giter Club logo

fend-capstone-travel-app's Introduction

FEND-Capstone-Travel-App

Project Capstone FEND

The goal of this project is to practice:

  • Setting up Webpack
  • Sass styles
  • Webpack Loaders and Plugins
  • Creating layouts and page design
  • Using APIs and creating requests to external urls.
  • Service workers

API used in this project

GeoNames https://www.geonames.org/export/web-services.html

Weatherbit API https://www.weatherbit.io/api

Pixabay Images API Documentation: https://pixabay.com/api/docs/

Prerequisite

This project should run on a local server.

Node and Express should be installed on the local machine. To ensure that Node and npm are installed, from the terminal:

node -v
npm -v

Required packages listed in packages.json.

Installation

1. Ensure Node, Express, Cors, Body parser, Webpack and all required packages are installed.

2. Clone project repo and change directory to current project

git clone <project repo url>
cd <project directory>

3. Run npm install

npm install

4. Get GeoNames user name; Weatherbit, Pixabay Images API key and insert to .env file

The configs should be:

GEONAMES_USERNAME = *******************
WEATHERBIT_API_KEY = ******************
PIXABAY_API_KEY = *********************

5. Build and run project Afterwards, to start the server run these commands in command line:

npm run build-dev
npm run build-prod
npm run start

Navigate to http://localhost:8080/ in your browser.

6. Run unit testing

npm run test

Usage

To use the app, You need:

  • Enter the destination you want to visit.

  • Select the departure date (Start date).

  • Select the return date (End date). And press the search button, app will query some API and return a result about the place you are looking for.

  • User can able to save the trip to Local Storage so that when they close, then revisit the page, their information is still remain.

  • User can select the "Saved Trips" tab to display all destination of the trip.

  • User can able add new trip or delete all trip in "Saved Trips" tab.

Demo

image

fend-capstone-travel-app's People

Contributors

khoivukha avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

ch1nhcp

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.