@asnea/quick-service

Somewhat opinionated microservice template

Usage no npm install needed!

<script type="module">
  import asneaQuickService from 'https://cdn.skypack.dev/@asnea/quick-service';
</script>

README

Quick-Service

Somewhat template for making node microservices.

What makes this opinionated?

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 (via nodemon)
  • 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 start will work.
  • Run npm run build-production to build a production package into build (WIP)
  • Other npm run commands are in the package.json

Recommended

If you use Sublime