Skip to content

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

Notifications You must be signed in to change notification settings

raksiv/nitric-api-dynamic-load

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published