The front end uses React with USWDS components to deliver its experience
The solution uses Node v14 for compatibility with the USWDS components.
The version is included in the .nvmrc
for those that use nvm
to maintain versions
If you are developing against API code that has not been deployed, you can redirect the API calls to the services running in Docker.
The following environment variables should be set before building or running:
Environment Variable | Applies to | Likely value |
---|---|---|
URL_FORTUNES | Fortune service | http://localhost:9000 |
URL_NAMES | Names service | http://localhost:5000 |
The definitive list of names is in the webpack.config
file
npm install
npm run build
npm start
The application should be available at http://localhost:8080
- We use ESLint to ensure Javascript standards
- We use Jest to run the unit tests