1.0.10 • Published 5 years ago

@yong-talentseer/rap-cli v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Rap CLI

CLI tool to create serverless project base on dawan-template.

Integration: Travis CI, Commitizen, Serverless

Prerequisite

Node.js 10.16.0+

Travis CI CLI Documentation

brew install ruby
gem install travis -v 1.8.10 --no-rdoc --no-ri
travis login --pro

Commitizen documentation

npm install -g commitizen

Installation

npm install -g @yong-talentseer/rap-cli

Usage

rap init example

Domain

If enter example.com as domain and skipped basePath, the service will be deployed to:

StageLink
devhttps://dev-api.example.com/api/hello-world
prodhttps://api.example.com/api/hello-world

Configuration

.env file

Will be used for serverless offline environment and Travis CI environment.

DB_CONNECTION_STRING='<YOUR DB CONN STRING HERE>'
AWS_ACCESS_KEY_ID='<YOUR AWS ACCESS KEY ID HERE>'
AWS_SECRET_ACCESS_KEY='<YOUR AWS SECRET ACCESS KEY HERE>'

Access Environment Variables

Access database connection strings in your code with ${process.env.DB_CONNECTION_STRING}

Access stage (dev or prod) with ${process.env.STAGE}

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago