codether
1.0.0
CodeEthE是一个完整的Web应用程序,是Pastebin的类似物,它允许用户在不注册的情况下节省最高10MB的任何代码。该应用程序还提供了一个开放的API,并使用摩纳哥编辑器(Visual Studio Code的类似物)的编辑器。特点
确保安装了以下程序:
git clone https://github.com/yourusername/codether.git
cd codether成瘾的安装
cd frontend
yarn install
cd ../backend
yarn install转到服务器目录并运行服务器:
cd backend
yarn start转到客户端目录并运行服务器:
cd frontend
yarn serve该应用程序将在http:// localhost:8080。打开API
POST /api/code/create - Сохранить новый код.
POST /api/code/get/:shortid - Получить сохраненный код по ID.
POST /api/code/update/:shortid - Обновление кода
curl -X POST http://localhost:3000/api/code/create -H " Content-Type: application/json " -d ' {"code": "console.log("Hello World");"} '项目结构
bash
codether/
├── frontend/ # VueJS frontend
│ ├── src/
│ ├── public/
│ └── ...
├── backend/ # NestJS backend
│ ├── src/
│ ├── test/
│ └── ...
├── README.md
└── package.json
如果您想为该项目做出贡献,请在存储库中创建拉动请求或打开问题。
该项目已根据MIT许可获得许可。有关更多详细信息,请参阅许可证文件。