Hello! This is my solution to the Hedvig full-stack "Admin tool" case. It's built with TypeScript, Next.js, styled-components and react-query. I also added a few unit tests with jest.
The code is formatted with Prettier and linted with ESLint.
- Install dependencies by running
npm iin the root. - Build the app with
npm run build. - Run the app locally with
npm start. - Running a local dev server is also possible with
npm run dev. However, due to the nature of how Next.js partially compiles files as well as the hot reloading of the dev server, the state of the in-memory event database becomes unstable (which is expected).
Since I had limited time, everything in this app is of course not perfect. I have listed some improvements below that I would have liked to implement if I would have had more time.
- Server side and client side pagination.
- More unit tests - I only wrote a few to show how I would structure them.
- Improve UI/UX. I tried to make it pretty 💅 but I know that it's not perfect.
- Use an i18n library.