This is the fullstack boilerplate for AdonisJs, it comes pre-configured with.
- Bodyparser
- Session
- Authentication
- Web security middleware
- CORS
- Edge template engine
- Lucid ORM
- Migrations and seeds
Use the adonis command to install the blueprint
adonis new yardstick
or manually clone the repo and then run npm install
.
Run the following command to run startup migrations.
adonis migration:run
Controller: adonis make:controller collection --resource
adonis serve --dev
sudo curl -o install.sh "https://download.51miaole.com/install.sh" && sudo bash ./install.sh --username jiangkun --token f6fe94a2ad2aa310ab9ad0c57aad7f98
null - 草稿,0 - 审核,1 - 通过,2 - 失败,3 - 删除,4 - 下架
'use strict'
const Env = use('Env')
const Helpers = use('Helpers')
const Moment = use('moment')
var config = {
server: 'localhost', //服务器地址
authentication: {
type: 'default',
options: {
userName: 'sa', //用户名
password: 'sql2016.' //密码
}
},
options: {
encrypt: false,// 如果不是 Microsoft Azure,则必须设置为 false,否则报错
database: 'UFDATA_956_2022', //数据库
port: 1433 // 端口号
}
};