Getting Started
Getting Started with Sports Live
Section titled “Getting Started with Sports Live”This guide helps you set up Sports Live on your machine for development, testing, or deployment.
Requirements
Section titled “Requirements”Before starting, make sure you have:
- Node.js v18+
- npm or yarn
- Git for version control
- MongoDB Atlas account (or local MongoDB instance)
- Clerk account for authentication setup
Clone the Repository
Section titled “Clone the Repository”git clone https://github.com/DevHackerGamer/sports-live.gitcd sports-liveEnvironment Variables
Section titled “Environment Variables”Create a .env.local file in the root directory:
# Clerk AuthenticationREACT_APP_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_keyCLERK_SECRET_KEY=your_clerk_secret_key
# MongoDBMONGODB_URI=your_mongodb_connection_string
# ServerPORT=8000Local Development
Section titled “Local Development”Start frontend and backend together with:
npm run devTroubleshooting
Section titled “Troubleshooting”| Issue | Solution |
|---|---|
| MongoNetworkError | Check your MongoDB URI and IP whitelist in Atlas. |
| Clerk login page not loading | Verify REACT_APP_CLERK_PUBLISHABLE_KEY is set correctly. |
| Port conflicts | Make sure no other process is running on port 3000 or 5000. |
Quick Start (3 Commands)
Section titled “Quick Start (3 Commands)”git clone https://github.com/DevHackerGamer/sports-live.gitcd sports-livenpm run dev🔍 Want to know what makes Sports Live special? Check out the Features & Overview page.