Skip to content

A web application that allows users to write, run and share code snippets remotely.

Notifications You must be signed in to change notification settings

ayush03dev/code-book

Repository files navigation

Description

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.

Built With

  • Frontend: React
  • Backend: Express, MongoDB
  • Docker

Running the project locally

Prerequisites

  • Node.js
  • Docker
  • NPM
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/ayush03dev/code-book
  2. Install NPM packages
    npm install
    npm install --prefix frontend
  3. Generate .env
    cp .env.example .env
  4. Configure MongoDB and JWT Secret in .env file
    MONGO_URI=
    JWT_SECRET=
  5. 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 .
  6. Start the server
    npm run dev
  7. Access the page at http://localhost:3000

Screenshots

Screenshot from 2023-07-06 12-26-59

Screenshot from 2023-07-06 12-27-24

About

A web application that allows users to write, run and share code snippets remotely.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published