Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/obrm/nba-playes
NBA Players is a React-based web application that leverages the BallDontLie API to display NBA player statistics and allows users to search for players, mark their favorites, and manage these preferences in a visually appealing interface.
https://github.com/obrm/nba-playes
axios daisyui lodash react react-icons react-infinite-scroll-component react-switch react-toastify tailwindcss typescript vite
Last synced: 5 days ago
JSON representation
NBA Players is a React-based web application that leverages the BallDontLie API to display NBA player statistics and allows users to search for players, mark their favorites, and manage these preferences in a visually appealing interface.
- Host: GitHub
- URL: https://github.com/obrm/nba-playes
- Owner: obrm
- Created: 2024-04-19T11:48:52.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-25T09:11:12.000Z (7 months ago)
- Last Synced: 2024-04-25T10:29:31.661Z (7 months ago)
- Topics: axios, daisyui, lodash, react, react-icons, react-infinite-scroll-component, react-switch, react-toastify, tailwindcss, typescript, vite
- Language: TypeScript
- Homepage: https://obrm-nba-players.netlify.app
- Size: 345 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NBA Players
NBA Players is a React-based web application that leverages the [BallDontLie API](https://www.balldontlie.io) to display NBA player statistics and allows users to search for players, mark their favorites, and manage these preferences in a visually appealing interface. You can view the live site here: [NBA Players Live Site](https://obrm-nba-players.netlify.app).
## Features
- **Player Search**: Search for NBA players using the BallDontLie API.
- **Favorite Players**: Users can mark players as favorites and manage this list.
- **Responsive Design**: Optimized for both desktop and mobile view.
- **Infinite Scrolling**: Load more players dynamically as you scroll.
- **Dark Mode Toggle**: Users can switch between light and dark themes in the favorites section.## Installation
To get started with NBA Players, follow these steps:
1. **Clone the Repository**
```bash
git clone https://github.com/obrm/nba-playes.git
cd NBA Players
```2. **Install Dependencies**
```bash
npm install
```3. **Environment Variables**
Create a `.env` file at the root of your project and add the following:
```plaintext
VITE_NBA_API_KEY=your_api_key_here
VITE_API_URL=https://api.balldontlie.io/v1
```Replace `your_api_key_here` with your actual BallDontLie API key.
4. **Run the Application**
```bash
npm run dev
```## Usage
Navigate through the application to search for NBA players, add or remove them from your favorites, and toggle between the light and dark themes in the favorites section. Use the responsive layout to access the app on any device.
## Screenshots
### Main Layout Desktop
![Main Layout Desktop](./src/assets/screenshots/main_desktop.png)### Main Dark Theme Layout Desktop
![Main Dark Theme Layout Desktop](./src/assets/screenshots/main_dark_theme_desktop.png)### Main Layout With Search Desktop
![Main Layout With Search Desktop](./src/assets/screenshots/search_desktop.png)### Main Layout Mobile
![Main Layout Mobile](./src/assets/screenshots/main_screen_mobile.png)### Favorites Page Mobile
![Favorites Page Mobile](./src/assets/screenshots/favoriets_mobile.png)### Main Layout With Search Mobile
![Main Layout With Search Mobile](./src/assets/screenshots/search_mobile.png)## Technologies
- **Vite**: Provides an extremely fast development environment with out-of-the-box features like Hot Module Replacement (HMR).
- **TypeScript**: Ensures type safety, enhancing the development process by catching errors at compile time.
- **React**: Facilitates the creation of interactive UIs.
- **Tailwind CSS & DaisyUI**: Used for rapid UI development with a focus on design customization.
- **Axios**: Handles API requests.
- **Lodash**: Offers utility functions for common programming tasks.
- **React Icons, React Infinite Scroll Component, React Switch, React Toastify**: Provide additional UI/UX enhancements.## Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your updates.
## License
`NBA Players` is released under the MIT License.