nanoservice

Build and deploy nanoservices with ease

Nanoservice Project Home Page

Open source set of tools, systems and libraries to let developers build and deploy fully asynchronous nanoservices with ease.

* Fast to setup

* Easy to use

* Pleasure to deploy

Install & Configure

1
2
3
4
5
6
7
8
9
10
curl -L https://git.io/nanoservice | bash

# configure nanoservice cluster on AWS (credentials, DNS, etc)
nanoservice configure

# or configure hosted nanoservice cluster with your credentials
nanoservice configure --hosted

# or configure local docker cluster for development
nanoservice configure --docker

If you are golang user, you can as well use go get:

1
go get github.com/nanoservice/nanoservice

Build your first “Hello world” web-nanoservice

1
2
nanoservice create --web --go helloworld
cd helloworld/

Edit main.go:

1
2
3
4
5
6
7
8
9
10
11
package main

import "github.com/nanoservice/libs-go/web"

func main() {
  web.Route("/", func(w *web.Response, r *web.Request) {
    // this is actually the only line we modified here
    w.Println("Hello, world!")
  })
  web.Start()
}

And deploy your app:

1
nanoservice deploy

Now if you reach http://helloworld.nanoservice.yourdomain.com/, you will see Hello, world! response. By the way, if you reach /health path, you will get OK - this is built-in health check mechanism.

What next?