CodeMonkey Backend is a REST API server for CodeMonkey, a platform to learn and practice coding with AI integrated code editor featuring Shepherd.js for guided tours. The platform is designed to help users learn coding in a fun and interactive way. It is built using Node.js, Express.js, MongoDB, Mongoose, and Gemini API.
- CodeTools powered by Gemini API
- Code run powered by Judge0 CE API
- CodeChimp powered by Gemini API
-
Clone the repository
git clone https://github.com/RohittCodes/codemonkeyserver.js.git
-
Change the directory
cd codemonkeyserver.js
-
Install the dependencies using yarn or any other package manager. (Yarn is recommended)
yarn
-
Create a
.env
file in the root directory and add the following environment variablesMONGODB_URI={Your MongoDB URI} GEMINI_API_KEY={Your Gemini API Key. Get it from Google AI studio} JUDGE0_API_KEY={Your Judge0 API Key. Get it from RapidAPI} RAPID_API_HOST={Your RapidAPI Host. Get it from RapidAPI} CLIENT_URL={Your frontend URL} PORT=5000
-
Start the server
yarn dev
- Node.js
- Express.js
- MongoDB
- Mongoose
- Gemini API
- Judge0 CE API
- You can use the API endpoints to interact with the CodeMonkey platform. Clone it from here and run the frontend to interact with the server.
- The server isn't hosted yet. You can host it on platforms like Heroku, Vercel, etc. We'll be hosting it soon.
Contributions are welcome! Feel free to open an issue or submit a pull request if you have any ideas or suggestions. You can also reach out to me on Twitter if you have any questions or feedback.