@re-ai/free-api
v0.0.9
Published
This is a starter template for a TypeScript project using Node.js and Docker.
Downloads
25
Readme
Re-AI-TS-STARTER
This is a starter template for a TypeScript project using Node.js and Docker.
Getting Started
Node.js, typescript 开发环境
npm install
npm run dev
Docker部署
构建镜像
修改Makefile文件中的IMAGE_NAME
和IMAGE_TAG
,然后执行make build
命令即可。
make build
第一次执行,需要执行make login
登录dockerhub,再执行make create-builder
创建builder。
### 登录
make login
### 创建builder
make create-builder
服务端运行
### 先克隆项目
git clone [项目地址]
### 运行
make run
绑定域名
如果需要部署ssl证书,修改Makefile里的 DOMAIN
和PROT_BIND
make ssl
- 确保域名解析到服务器的ip地址