在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:danielfsousa/express-rest-boilerplate开源软件地址:https://github.com/danielfsousa/express-rest-boilerplate开源编程语言:JavaScript 62.2%开源软件介绍:Express ES2017 REST API BoilerplateBoilerplate/Generator/Starter Project for building RESTful APIs and microservices using Node.js, Express and MongoDB Features
Requirements
Getting StartedClone the repo and make it yours:git clone --depth 1 https://github.com/danielfsousa/express-rest-es2017-boilerplate
cd express-rest-es2017-boilerplate
rm -rf .git Install dependencies:yarn Set environment variables:cp .env.example .env Running Locallyyarn dev Running in Productionyarn start Lint# lint code with ESLint
yarn lint
# try to fix ESLint errors
yarn lint:fix
# lint and watch for changes
yarn lint:watch Test# run all tests with Mocha
yarn test
# run unit tests
yarn test:unit
# run integration tests
yarn test:integration
# run all tests and watch for changes
yarn test:watch
# open nyc test coverage reports
yarn coverage Validate# run lint and tests
yarn validate Logs# show logs in production
pm2 logs Documentation# generate and open api documentation
yarn docs Docker# run container locally
yarn docker:dev
# run container in production
yarn docker:prod
# run tests
yarn docker:test DeploySet your server ip: DEPLOY_SERVER=127.0.0.1 Replace my Docker username with yours: nano deploy.sh Run deploy script: yarn deploy TutorialsInspirationsLicense |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论