This is the Hackney DLO Bonus Scheme frontend application which allows supervisors to enter non-productive time, view bonus scheme reports and approve/reject changes to operatives' current payband.
It's a Next.js app that works with:
- Hackney's DLO Bonus Calculation API
- Hackney's Google oAuth service
It's built using Hackney Design System.
$ git clone [email protected]:LBHackney-IT/bonuscalc-frontend.gitThe app needs Node 20, if you have NVM installed just run nvm use in your terminal.
Install the dependencies:
yarn installFirst, you need a @hackney.gov.uk Google account in the right groups to log in. Speak to Hackney IT if you don't have these.
Next, you need to tell your computer to run the app from a hackney.gov.uk domain. Let's use localdev.hackney.gov.uk. You will need to add the following line to your /etc/hosts file:
127.0.0.1 localdev.hackney.gov.uk
Lastly, create your .env.local and .env.test.local files from .env. You will need to grab some secrets from the team.
npm run dev
# or
yarn devOpen http://localhost:5000 with your browser to see the result.
Our serverless deployment service is configured in serverless.yml.
The serverless service includes the following:
- a single serverless function: bonuscalc-frontend
- Description of the Cloudfront CDN in CloudFormation
- Custom subdomain under hackney.gov.uk