This is a Next.js project bootstrapped using create-next-app
with Material UI installed.
This was initially copied from https://github.com/mui/material-ui/tree/master/examples/material-ui-nextjs-ts
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-nextjs-ts
cd material-ui-nextjs-ts
- Added nvmrc - required node 21.5
- npm
- Eslint rules that author (Simon) is used to
npm install
npm run dev
Open http://localhost:3000 with your browser to see the result.
https://verifime-git-main-sidouglasnets-projects.vercel.app/
Took about a good 1/2 day to get to this stage. Given that the original requirement was <=3 hours:
- Skipped the import/export json feature (time constraints)
- Therefore multiple invoices are not possible
- Technically it would be possible as an
<Invoice/>
can receive props
- Rather than a onblur triggering to recalculate totals, I added a calculate button - this must be pushed in order to recalculate the total
- The button is disabled if the line items are in an invalid state.