Local Development

Run a service with the micro runtime

The micro runtime provides a way to manage the lifecycle of services without the complexity of orchestration systems. By default it provides a simple local process manager which starts your service, watches for changes and rebuilds as required.

You can start the service with one command

  1. micro run service

Usage

To run and manage your service locally do the following.

  1. # cd to your service directory e.g examples/greeter/srv
  2. cd examples/greeter/srv
  3. # run the service
  4. micro run service
  5. # edit a file
  6. sed -i '1 i\// Package main' main.go

Watch as your service is started, sees the file change, rebuilds and starts again.

TODO

We’ll be adding the ability to send the command to run a service to the micro runtime service as well as querying status, killing the service, etc.