GithubHelp home page GithubHelp logo

dylancht / nationalpark_flask_react Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 338 KB

National Park List is a web application that allows users to explore national parks based on various categories. This project consists of a Flask backend server for fetching park data from the National Park Service API and a React frontend for displaying the data in a user-friendly manner.

Python 9.81% HTML 20.21% JavaScript 50.70% CSS 19.28%

nationalpark_flask_react's Introduction

# National Park List

National Park List is a web application that allows users to explore national parks based on various categories. This project consists of a Flask backend server for fetching park data from the National Park Service API and a React frontend for displaying the data in a user-friendly manner.

## Features

- Fetches park data from the API
- Displays parks categorized by activity types
- Allows users to view park details and explore more parks

## Technologies Used

- Flask: Python web framework for the backend server
- React: JavaScript library for building user interfaces
- Axios: Promise-based HTTP client for making requests to the backend
- react-horizontal-scrolling-menu: React component for creating horizontal scroll menus

## Backend Setup

1. Install dependencies:

cd nationalpark/nationalpark_backend
pip install -r requirements.txt

2. Run the Flask server:
python app.py

The backend flask application now be aceessible on http://127.0.0.1:8080/ 
with route '/api/parks' to access processed park data in JSON 

## Frontend Setup

1. Install dependencies:
cd nationalpark/nationalpark_react
npm install

2. Run the react development Server:
npm start

The frontend should now be accessible on http://localhost:3000.

## Usage
Visit the frontend URL to see a horizontal scroll menu with category cards of national parks.
Each card presents the category name of the activity and the number of parks within that category.
Click on a category card to view the first 5 parks associated with that category. If there are more than 5 parks, only the first 5 will be shown.
Click on a park name to open the park link in a new tab.

## Potential Feature
Add a button for each card to show all the parks in the list if there are more than 5.

nationalpark_flask_react's People

Contributors

dylancht 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.