Code Conquer is an online coding platform developed using the MERN stack. It provides users with a comprehensive coding environment to practice, compete, and improve their coding skills. The platform features a Coding Playground, Coding Arena, and Coding Battleground, making it ideal for learners and professionals alike.
- Coding Playground: A place to write, run, and test your code.
- Coding Arena: Engage in coding challenges and competitions.
- Coding Battleground: A battle zone for head-to-head coding duels.
- Dark Mode: An eye-friendly interface for coding in low light.
- Frontend: React
- Backend: Node.js, Express
- Database: MongoDB
- Deployment: Vercel
To set up this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/code-conquer.git cd code-conquer -
Install dependencies:
- Install client dependencies:
cd client npm install - Install server dependencies:
cd ../server npm install
- Install client dependencies:
-
Set up environment variables:
- Create a
.envfile in theserverdirectory and add your environment variables. Example:MONGODB_URI=your-mongodb-uri PORT=5000
- Create a
-
Run the application:
- Start the server:
cd server npm start - Start the client:
cd ../client npm start
The application should now be running locally on
http://localhost:3000. - Start the server:
- Landing Page: Choose between the Playground, Arena, or Battleground.
- Coding Playground: Write and test your code.
- Coding Arena: Participate in coding challenges.
- Coding Battleground: Compete with others in real-time coding battles.
code-conquer/
β
βββ client/ # Frontend (React)
β βββ public/
β βββ src/
β βββ components/
β βββ App.css
β βββ App.js
β βββ index.css
β βββ index.js
β
βββ server/ # Backend (Node.js, Express)
β βββ controllers/
β βββ models/
β βββ routes/
β βββ .env
β βββ server.js
β
βββ README.md
βββ package.jsonThe application is hosted on Vercel. You can visit the live site here.
To deploy your own version:
- Fork the repository.
- Push your changes.
- Connect the repository to Vercel.
- Deploy.
Contributions are welcome! If youβd like to contribute, please fork the repository and make your changes. Submit a pull request with a detailed explanation of your changes.