堆栈
Node.js / Express.js
MongoDB /猫鼬
智威汤逊
怎么跑
将variables.env.sample复制到variables.env并对其进行自定义
npm start
// or
npm run watch
数据样本:
npm run seed
npm run seed:delete
npm run seed:refresh
皮棉:
npm run lint
路线/ API
根网址:
curl -X GET \
http://localhost:3000/
API验证:
curl -X POST \
http://localhost:3000/api/authenticate \
-H ' content-type: application/json ' \
-d ' {
"email": "xinh@mail.com",
"password": "123456"
} '
API获取用户:
curl -X GET \
http://localhost:3000/api/users \
-H ' auth
1