在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:lorenzopicoli/node-api-starter开源软件地址:https://github.com/lorenzopicoli/node-api-starter开源编程语言:JavaScript 100.0%开源软件介绍:Node API StarterStack
Getting startedClone the repository:
Navigate to the repo folder and install the dependencies:
Env variables will be loaded from a
You can make sure the code is working by running the server on development mode:
You should get back:
Creating new modulesLet's call it
Environment variables.env example:
NPM scriptsStart the server on live mode (and migrate the database)
Start the server for development (live reload)
Before commit (lint and execute tests)
Generate documentation
Run tests
DocumentationAPI documentation is written inline and generated by jsondoc. Example: https://lorenzopicoli.github.io/node-api-starter Migrations & SeedingGenerate new migration
Run migrations
Roll back migration
Run seeds# development or production environment
NODE_ENV=development knex seed:run See knex docs for details LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论