/frontend-challenge

TypeScript, Preact and JSX frontend challenge

Primary LanguageTypeScript

We Got You Covered

Small frontend challenge involving TypeScript, Preact and JSX.

The idea is to help the user choose the optimal combination of premium and deductible.

Screenshot

Front end logic

The implemented frontend is found in the rountes.profile folder.

Unit tests of calculations

Unit tests are found in the profile.test file.

frontend

CLI Commands

  • npm install: Installs dependencies

  • npm run dev: Run a development, HMR server

  • npm run serve: Run a production-like server

  • npm run build: Production-ready build

  • npm run lint: Pass TypeScript files using ESLint

  • npm run test: Run Jest and Enzyme with enzyme-adapter-preact-pure for your tests

For detailed explanation on how things work, checkout the CLI Readme.