0.1.0 • Published 10 years ago
@asnea/quick-service v0.1.0
Quick-Service
Somewhat template for making node microservices.
What makes this opinionated?
- JavaScript Standard Style all the way
- ES6/ES7 all the way
- Restify
- Build system already done
- 12 Factor as much as possible. This includes a config file that should be kept separate from the repository.
- SSL always, certificates via Lets Encrypt. Prefer HTTP/2, SPDY
Quick Start
- Take an empty folder
- Run
npm install @asnea/quick-service - Run
node_modules/.bin/quick-service(on Windows, use\) - You now have a service template ready to go
Optionally, you can edit the package.json to include correct details.
How to use your new service
There will be a README.MD file in your created service, which can explain in details the commands you can run, but in general:
- When developing, run
npm run watch. Your code will be automatically watched and the server restarted when code changes (vianodemon) - If you want to just build and run the server, run
npm run build-and-run - If you're built and just want to run the server,
npm startwill work. - Run
npm run build-productionto build a production package intobuild(WIP) - Other
npm runcommands are in thepackage.json
Recommended
npm install -gstandardnpm install -geslint-plugin-standard
If you use Sublime
0.1.0
10 years ago