npm install --global @sakuraapi/cli
Test to see if you have successfully installed the sakur API CLI by running
sapi help
Start by creating a working directory for your project.
mkdir example-api
cd example init
sapi init
You will go through a series of prompts to configure the project.
-
package.json preferences:
-
Author:
Your name, handle, alias, pseudonym, etc.
-
Description: Project description
-
License: Pick a license. If you need help visit https://choosealicense.com/
-
Project Name (npm name): Project name
-
Version: If you need help visit http://semver.org
-
-
src/config/environment.ts preferences: 1. What JWT role does this server fulfill?:
This has to do with the authentication needs of your project. Your choices are
- a for audience
- i for issuer
- n for none
- H for Help