npm install
node_modules/.bin/sls dynamodb install
npm start
to start serverless locally with default portsIS_OFFLINE=true DYNAMO_PORT={dynamodb port} SERVERLESS_PORT={serverless port} ./node_modules/serverless/bin/serverless offline start
to start serverless locally with custom ports
This dev tool allows to manage multiple git operations across all CVS Dev Services
To get started locally, follow these instructions:
Download and install rake with the following.
gem install rake
Please follow the rake documentation on how to install the package on your machine
- clone this repository in your project directory
- cd into the project and run
rake clone
Command | Description |
---|---|
rake help | -- display help |
rake branch | -- display current branch of all repos |
rake clone | -- run 'git clone' on all repos |
rake pull | -- run 'git pull --rebase' on all repos |
rake create_branch "BRANCH" | -- run 'git checkout -b BRANCH' on all repos |
rake checkout_master | -- run 'git checkout master' on all repos |
rake checkout_develop | -- run 'git checkout develop' on all repos |
rake needs_commit | -- checks if any of the repos need a commit |
rake install | -- run npm install in all repositories |
rake start | -- run npm run start in all repositories |
In order to test, you need to run the following:
npm run test
for unit testsnpm run test-i
for integration tests- The
IS_OFFLINE
environment variable needs to be set totrue
in order for the microservice to connect to the local dynamodb instance. Defaults totrue
- The
SERVERLESS_PORT
environment variable needs to be set to a value representing the port you want the serverless instance to run on. This variable is mandatory. Defaults to3000
- The
DYNAMO_PORT
environment variable needs to be set to a value representing the port you want the dynamodb shell to run on. This variable is mandatory. Defaults to8000
.