On most Unix systems including macOS, you can install the prerequisites with a single command:
./install-prepreqs-unix.shAlternatively, you can install the prerequisites by following the instruction below:
- Install Volta using the environment specific commands listed below
- Unix based environments
After installing Volta, if applicable, you may need to refresh your bash profile using
curl https://get.volta.sh | bashsource ~/.bashrcto use Volta commands - Windows environments
- Download and run Windows installer here
- Unix based environments
- Install Node.js@18 with Volta
volta install node@18
- Install Yarn with Volta
volta install yarn
- Install Java Runtime Environment (JRE) version 11.x or newer
- Install nest a global dependency for using the Nest CLI:
yarn add global nest
- Install application dependencies:
yarn install
- Update the variables
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY, andAWS_SESSION_TOKENunder fileapps/core/.envwith your development AWS credentials. - Start development server:
yarn dev
- Application is available at URL:
http://localhost:3000 - Log in with local Cognito credentials found at
apps/core/.cognito/db/us-west-2_h23TJjQR9.json
Run local test command yarn test to test the application. The command is "batteries included" - it has everything needed to run and test the application locally.
Run yarn gen:types in root while yarn dev is running.
The table below lists the service dependencies for different environments.
| Category\Environments | Local Development | Local Test |
|---|---|---|
| Authentication | cognito-local | cognito-local |
| App API Database | dynamodb-local | dynamodb-local |
| App API Authorization | cognito-local | JWT generated from secret |