Giter Site home page Giter Site logo

synjan / f1app Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.36 MB

F1App is a web application built with React that provides information about the current Formula 1 season. It allows users to view the race schedule, countdown to upcoming races, and see key race results.

Home Page: https://f1eventcalendar.web.app

JavaScript 85.96% HTML 4.40% CSS 9.64%
axios codeql date-fns ergast-api formula1 html javascript nodejs react

f1app's Introduction

CodeQL

F1App

F1App is a web application built with React that provides information about the current Formula 1 season. It allows users to view the race schedule, countdown to upcoming races, and see key race results.

Features

  • Displays a list of races for the current Formula 1 season
  • Shows race information including name, location, and date
  • Provides a countdown timer for upcoming races
  • Allows users to click on a race to view detailed information
  • Fetches race results for finished races and displays the winner and other key information
  • Automatically scrolls to the next upcoming race on initial load
  • Restores scroll position when navigating back from race details

Technologies Used

  • React: JavaScript library for building user interfaces
  • Axios: Promise-based HTTP client for making API requests
  • date-fns: Library for manipulating and formatting dates
  • Ergast API: API providing Formula 1 data

Getting Started

To run the F1App locally on your machine, follow these steps:

  1. Clone the repository:

    git clone https://github.com/synjan/f1app.git
    
  2. Navigate to the project directory:

    cd f1app
    
  3. Install the dependencies:

    npm install
    
  4. Start the development server:

    npm start
    
  5. Open your browser and visit http://localhost:3000 to see the app running.

Project Structure

The project structure is as follows:

f1app/
  ├── public/
  │   ├── index.html
  │   └── ...
  ├── src/
  │   ├── components/
  │   │   ├── RaceCard.js
  │   │   ├── RaceCard.css
  │   │   ├── RaceDetail.js
  │   │   └── RaceDetail.css
  │   ├── App.js
  │   ├── App.css
  │   └── index.js
  ├── .gitignore
  ├── package.json
  └── README.md
  • public/: Contains the public assets and the HTML template.
  • src/: Contains the source code of the application.
    • components/: Contains reusable components used in the app.
      • RaceCard.js: Component for displaying a race card with basic information.
      • RaceCard.css: Styles for the RaceCard component.
      • RaceDetail.js: Component for displaying detailed information about a race.
      • RaceDetail.css: Styles for the RaceDetail component.
    • App.js: The main component that fetches data and renders the race list and details.
    • App.css: Styles for the App component.
    • index.js: The entry point of the application.
  • .gitignore: Specifies files and directories to be ignored by Git.
  • package.json: Contains project metadata and dependencies.
  • README.md: Provides information and instructions about the project.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgements

f1app's People

Contributors

synjan avatar

Stargazers

Muhammad Zahooruddin Nizamani avatar  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.