CodeBook is a web application that allows users to run code snippets remotely. Users can write code snippets in multiple languages, describe their functionality, set input arguments, and share them with others. The platform runs code remotely in secure Docker containers, ensuring a safe and isolated environment. Users can provide input parameters, enabling comprehensive testing and debugging.
- Frontend: React
- Backend: Express, MongoDB
- Docker
- Node.js
- Docker
- NPM
npm install npm@latest -g
- Clone the repo
git clone https://github.com/ayush03dev/code-book
- Install NPM packages
npm install
npm install --prefix frontend
- Generate .env
cp .env.example .env
- Configure MongoDB and JWT Secret in .env file
MONGO_URI= JWT_SECRET=
- Build Docker Images
cd Dockerfiles
docker build -t java-exec -f DockerJava .
docker build -t python-exec -f DockerPython .
docker build -t cpp-exec -f DockerCPP .
- Start the server
npm run dev
- Access the page at
http://localhost:3000