Skip to content

Latest commit

 

History

History
86 lines (55 loc) · 1.33 KB

README.md

File metadata and controls

86 lines (55 loc) · 1.33 KB

Description

Dynamically load modules for use in a sample API developed with Nitric.

Usage

Step 1: Install Nitric

Prerequisites
MacOs

Install with homebrew

brew install nitrictech/tap/nitric
Windows

Install with scoop

scoop bucket add nitric https://github.com/nitrictech/scoop-bucket.git
scoop install nitric
Linux

Download as a scripted install via curl.

curl https://nitric.io/install | bash

Note: Complete installation guide can be found here


Step 2: Run the API locally with Nitric

yarn install
nitric run

Step 3: Consume the API

curl http://localhost:9001/apis/main/hello/cat
{"message":"meow"}
curl http://localhost:9001/apis/main/hello/donkey
{"message":"No greeting module found for animal - donkey"}

What's next?

Explore the Nitric framework to learn how to deploy to the cloud and much more.