{"id":16294780,"url":"https://github.com/finesse/test-task-employee-payslip","last_synced_at":"2026-04-21T05:33:36.108Z","repository":{"id":94077416,"uuid":"137042639","full_name":"Finesse/test-task-employee-payslip","owner":"Finesse","description":"A React/Next.js test task for Starlight Group","archived":false,"fork":false,"pushed_at":"2018-08-22T02:05:09.000Z","size":97,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T04:02:48.558Z","etag":null,"topics":["application","nextjs","react","reactjs","test-task"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Finesse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-12T08:41:58.000Z","updated_at":"2022-07-01T06:03:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea506367-2f07-47dd-94e3-0a34b0d66683","html_url":"https://github.com/Finesse/test-task-employee-payslip","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Finesse/test-task-employee-payslip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Finesse%2Ftest-task-employee-payslip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Finesse%2Ftest-task-employee-payslip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Finesse%2Ftest-task-employee-payslip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Finesse%2Ftest-task-employee-payslip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Finesse","download_url":"https://codeload.github.com/Finesse/test-task-employee-payslip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Finesse%2Ftest-task-employee-payslip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32078943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["application","nextjs","react","reactjs","test-task"],"created_at":"2024-10-10T20:16:28.416Z","updated_at":"2026-04-21T05:33:36.091Z","avatar_url":"https://github.com/Finesse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Employee payslip calculator\n\nThis is an application where user can input employee data (annual salary, super rate, etc.) and get a payslip on a separate page.\nThe application is a single page application made on top of [React](http://reactjs.org) and [Next.js](http://nextjs.org/). \n\nThe complete task is located here: https://docs.google.com/document/d/1gSB-NJh4yIPLnEMNVBTawo7444rZkfIVyq0icxWEv9s\n\n\n## How to start\n\n1. Install [Node.js](http://nodejs.org/en/).\n2. Open a terminal and go to an empty directory where you want to install the application.\n3. Download the code\n    ```bash\n    git clone https://github.com/Finesse/test-task-employee-payslip.git .\n    ```\n4. Install the dependencies\n    ```bash\n    npm install\n    ```\n5. Start the application\n    ```bash\n    npm run build\n    npm run start\n    ```\n6. Open http://localhost:3000 in your browser.\n7. Press \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eC\u003c/kbd\u003e in the terminal to stop the application.\n\n\n## Example inputs and outputs\n\n### Example 1\n\n#### Input\n\n| First name | Last name | Annual salary | Super rate (%) | Payment start date |\n| ---------- | --------- | ------------- | -------------- | ------------------ |\n| Andrew     | Smith     | 60050         | 9              | Match 1, 2018      |\n\n#### Output\n\n| Name         | Pay period          | Gross income | Income tax | Net income | Super amount |\n| ------------ | ------------------- | ------------ | ---------- | ---------- | ------------ |\n| Andrew Smith | 01 March – 31 March | 5004         | 922        | 4082       | 450          |\n\n### Example 2\n\n#### Input\n\n| First name | Last name | Annual salary | Super rate (%) | Payment start date |\n| ---------- | --------- | ------------- | -------------- | ------------------ |\n| John       | Doe       | 130000        | 2              | April 1, 2018      |\n\n#### Output\n\n| Name         | Pay period          | Gross income | Income tax | Net income | Super amount |\n| ------------ | ------------------- | ------------ | ---------- | ---------- | ------------ |\n| John Doe     | 01 April – 30 April | 10833        | 2978       | 7855       | 217          |\n\n\n## Application architecture\n\nThe application architecture fully inherits the suggested Next.js architecture.\nThe pages root React components are located in the [pages](pages) directory.\nAll the other React components are located in the [components](components) directory.\nThe pure business logic code is located in the [models](models) directory.\n\nThe form input data is passed to the result page using the [React Context API](https://reactjs.org/docs/context.html).\nThe [pages/_app.js](pages/_app.js) file, which contains a parent React component for all the pages, creates a context provider.\nThe [form on the index page](components/EmployeeForm.js) consumes the context, calls it's function to set an employee data to the context and just redirects the user.\nIn its turn, the [result page](pages/result.js) consumes the context and uses it's data to display a payslip. \n\nThe [form component](components/EmployeeForm.js) uses the [React Form](https://react-form.js.org/) package to control the inputs state.  \n\n## Contribution\n\nTo start a development version of the application, run\n\n```bash\nnpm run dev\n```\n\nIt will enable hot reload so when you edit a file, changes will appear on the browser page without a page reload.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinesse%2Ftest-task-employee-payslip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinesse%2Ftest-task-employee-payslip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinesse%2Ftest-task-employee-payslip/lists"}