- Quick start
- User journeys
- Environment variables
- Development documentation
- Testing email locally
- Npm scripts
- Acceptance tests
Install the dependencies and build the project resources
$ yarn installInstall Redis and make sure you have a running redis instance in the background.
Tested running on redis server version v6.0.9, and npm version v8.10.0.
Initiate the server in development mode (Express is used to serve the static resources in development).
$ yarn run devThen select one of the following journeys to see the applcation in action
Full list of environment variables
See the development documentation for a complete description of the application and how to maintain and support BRP.
Run the following docker command to run maildev
docker run -p 1080:1080 -p 1025:1025 maildev/maildevset the following local environment variables
EMAIL_PORT=1025
EMAIL_HOST='localhost'
EMAIL_SECURE='false'
SMTP_USER='test'
EMAIL_IGNORE_TLS='true'Run the app like normal and you should see all emails going to http://localhost:1080/
Start the application in default mode (production). We use Nginx to serve our static resources in production and ci.
$ yarn startStart the application with Nodemon in development mode. Debug is switched on and the server restarts when the JS or Sass are recompiled.
$ yarn run devRun the unit tests
$ yarn run testRun the EcmaScript (ES) linter. Rules are defined in .eslintrc
$ yarn run lintRun the jscs style checker. Rules are defined in .jscsrc.json
$ yarn run styleCompile the Sass to CSS
$ yarn run sassFor details on Acceptance tests