【文件属性】:
文件名称:discord-api:不和谐的后端API
文件大小:22KB
文件格式:ZIP
更新时间:2024-03-28 19:07:46
TypeScript
分配分配前端
这是用于后端api。
之前
确保首先拥有Nodejs,然后再运行:
$ yarn或$ npm install
安装依赖项。
生产
在启动api之前,您应该首先通过以下方式构建api:
$ yarn tsc或$ npm tsc
要以生产模式启动api,请运行
$ yarn start或$ npm start
您还可以通过以下方式在Docker上运行api
docker run --rm -it -p 3001:3001 nanyangcn/wolt-backend
生产模式在http://localhost:3001
发展
在开发模式下运行api
$ yarn start或$ npm start
以开发模式启动api。
开发模式在http://localhost:3001
测试
通过运行测试
$ yarn test或$ npm test
【文件预览】:
discord-api-master
----package.json(1KB)
----data()
--------restaurants.json(24KB)
----.eslintrc.json(1KB)
----Dockerfile(134B)
----jest.config.js(240B)
----src()
--------database()
--------tests()
--------app.ts(588B)
--------types()
--------utils()
--------index.ts(168B)
----tsconfig.json(6KB)
----.gitignore(33B)
----README.md(823B)
----.eslintignore(47B)