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
.env
file in theserver
directory 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.json
The 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.