基于koa2 + ts + swagger + jwt + mongodb
根目录新增.env.dev
文件,配置如下
SECRET="you secret"
JWT_EXPIRED="1 days"
DB_HOST="your host"
DB_PORT="your port"
DB_USER="your username"
DB_PASSWORD="your password"
DB_BASE="your database"
npm i
npm run watch
npm run dev