Giter VIP home page Giter VIP logo

interns-challenge's Introduction

Intern challenge

Backend

  1. Replace api key in HolidayCalendar.cs, line 14 with your own salling group api key.
  2. Run unit tests.

Frontend

project is placed under src/holiday-calendar-fe

  1. navigate to src/holiday-calendar-fe and run npm install.
  2. Replace api key in proxyServer.ts, line 20 with your own salling group api key.
  3. navigate to src/axois-proxy and run npm install.
  4. in the same directory run npx ts-node src/proxyServer.ts
  5. in a separate terminal, navigate to src/holiday-calendar-fe and run npm start
  6. 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.

interns-challenge's People

Contributors

andreasvikke avatar kjelloo avatar rorbol avatar techchapter-as-code-techchapter[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.