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許可獲得許可。有關更多詳細信息,請參閱許可證文件。