Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Travel Planner App is a Udacity Nanodegree project for managing trips. It offers weather updates using Geonames and Weatherbit APIs and fetches destination images via the Pixabay API.

NotificationsYou must be signed in to change notification settings

HebaHamdan2/travel-planner-app

Repository files navigation

TheTravel Planner App is a project developed as part of the Udacity Nanodegree program. This app allows users to add, store, and manage their trips, whether they are today, upcoming or past trips. It features the ability to view weather forecasts for departure dates using theWeatherbit API and to get images of destinations using thePixabay API. The application is built with many web technologies and includes both client-side and server-side testing.

Screenshot (1281)

Features

  • Add and Manage Trips: Users can add, view, and delete trips.
  • Weather Forecast: Displays weather forecasts for the departure date using the Weatherbit API.
  • Destination Images: Fetches images of destinations or countries using the Pixabay API.
  • Local Storage: Trips data is stored in the browser's local storage, allowing data persistence across sessions.
  • Alerts: Utilizes SweetAlert2 for interactive and user-friendly alerts.

Tech Stack

  • Frontend:

    • Sass: For styling the application.
    • Webpack: For bundling and managing frontend assets.
    • Babel: For transpiling modern JavaScript.
    • Service Worker: For enabling offline functionality and caching assets.
  • Backend:

    • Express: For setting up the server and handling API requests.
    • dotenv: For managing environment variables.
    • cors: For enabling Cross-Origin Resource Sharing.
  • Testing:

    • Jest: For unit and integration testing.
    • Supertest: For testing HTTP requests.
  • APIs:

    • Weatherbit API: To fetch weather data based on latitude and longitude obtained from the Geonames API.
    • Pixabay API: To get images for destinations or countries.
    • Geonames API: To retrieve latitude and longitude for locations.
  • Alerts:

    • SweetAlert2: For displaying stylish alerts.

Node Version

Ensure you are using Node.js versionv18.16.1 for compatibility:

node -v

Installation

  1. Clone the repository:

    git clone https://github.com/HebaHamdan2/travel-planner-app.git
  2. Install dependencies:

    npm install
  3. Set Up Environment Variables

  • Create a .env file in the root of your project directory with the following content:
      PIXABAY_API_KEY=your_pixabay_key  WEATHERBIT_API_KEY=your_weatherbit_key  GEONAMES=your-Geaonnames-username

Scripts

  • Start the Server:
npm start
  • Build for Production:
npm run build-prod
  • Build for Development:
npm run build-dev
  • Run Server-Side Tests:
npm run test:server
  • Run Client-Side Tests:
npm run test:client
  • Run All Tests:
npmtest

About

Travel Planner App is a Udacity Nanodegree project for managing trips. It offers weather updates using Geonames and Weatherbit APIs and fetches destination images via the Pixabay API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp