Code Monkey home page Code Monkey logo

runcode's Introduction

runcode

代码在线编辑器

语言支持度

  • C++ 11

  • Java

  • nodejs lts

  • golang latest

  • python3

  • php

  • bash

开发

前置条件

nodejs > 14.17.0

包管理工具 pnpm 安装

npm install pnpm -g

server

koa + typescript + dockerode

  1. 构建镜像

前置条件, 安装了 docker

未构建的镜像, 在编辑器里 run 代码时会报镜像 404, 所以开发过程中无需全部构建, 构建需要的语言环境即可

  • 构建 C++ 镜像

    cd server/src/docker/cpp
    docker build -t cpp:11 .
  • 构建 rust 镜像

    cd server/src/docker/rust
    docker build -t rust:latest .
  • 构建 python3 镜像

      cd server/src/docker/python3
      docker build -t python:3 .
  • 构建 go 镜像

      cd server/src/docker/go
      docker build -t go:latest .
  • 构建 nodejs 镜像

      cd server/src/docker/nodejs
      docker build -t nodejs:lts .
  • 构建 centos 镜像

      cd server/src/docker/centos
      docker build -t centos:7 .
  • 构建 java 镜像

      cd server/src/docker/java
      docker build -t java:latest .
  • 构建 php 镜像

      cd server/src/docker/php
      docker build -t php:8 .
  1. 安装依赖

    cd server
    pnpm i
  2. 启动

    pnpm dev

client

vite + react + typescript + tailwindcss + daisyui + mobx + monaco-editor

  1. 安装依赖

    cd client
    pnpm i
  2. 编译 tailwindcss

    # 启动后另开终端启动服务
    pnpm build:tailwind:watch
  3. 启动服务

    # 起开发环境,需要起 server
    pnpm dev
    # 起生产环境
    pnpm prod

runcode's People

Contributors

xjq7 avatar hadoopj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.