Welcome to TradeFriendly! This application allows you to discover the best NHL teams and players, manage your roster, analyze player stats, and make informed trade decisions.
- Team and Player Information: Fetch and display detailed information about NHL teams and players.
- Roster Management: Manage your team’s roster, including adding and removing players.
- Player Stats Analysis: Analyze player statistics to make informed trade decisions.
- Trade Simulator: Simulate trades between teams to evaluate potential trade outcomes.
- Draft Tracking: Track and manage draft picks and player performance.
- Frontend: ReactJS
- Backend: ExpressJS
- Database: MongoDB
- API: NHL API for real-time player and team data
- Node.js (v16 or later)
- MongoDB (running locally or using a cloud instance)
Clone the repository and navigate to the project directory:
git clone https://github.com/your-username/TradeFriendly.git cd TradeFriendly
Navigate to both the client and server directories to install the required dependencies.
For the server:
cd server npm install
For the client:
cd ../client npm install
Create a .env file in the server directory and add the following variables:
MONGODB_URI=your-mongodb-uri PORT=5000
Start the Backend Server:
cd server npm run dev
Start the React Frontend:
cd client npm start
The application will be available at http://localhost:3000 and the API server at http://localhost:5000.
- GET /api/teams: Retrieve a list of NHL teams.
- GET /api/players: Retrieve a list of players.
- GET /nhl/stats: Retrieve current player stats from the NHL API.
- POST /api/players: Add or update player information in the database.
-
Fork the repository.
-
Create a new branch: git checkout -b feature/YourFeature
-
Make your changes.
-
Commit your changes: git commit -am 'Add new feature'
-
Push to the branch:
-
Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or feedback, please contact:
- Your Name: justin.do@hotmail.com
- GitHub: https://github.com/jeedey93