- Replace api key in HolidayCalendar.cs, line 14 with your own salling group api key.
- Run unit tests.
project is placed under src/holiday-calendar-fe
- navigate to
src/holiday-calendar-fe
and runnpm install
. - Replace api key in proxyServer.ts, line 20 with your own salling group api key.
- navigate to
src/axois-proxy
and runnpm install
. - in the same directory run
npx ts-node src/proxyServer.ts
- in a separate terminal, navigate to
src/holiday-calendar-fe
and runnpm start
- navigate to
http://localhost:3000/
I was forced to use a proxy server to bypass CORS restrictions, set by the salling group api.
The frontend is obviously a big mess, as it is my first time using react, and I had to learn it on the fly. I am aware that the code is not optimal, but I did my best to make it work.
The danish constitution day is not marked as a national holiday by the salling group holiday api, so it will not be shown together with the other holidays described my the second user story for the frontend. One could either also include non national holidays in the calendar, or hard code the fifth of june to always be marked as the constitution day.