Flight / thalex-assignment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thalex Front-End Developer Technical Assignment Solution

Framework: ReactJS

Unit-tests: Jest + React Testing Library

Integration tests: Cypress

Scss implementation: Dart Sass

Linters: eslint with airbnb config, stylelint, prettier

Available Scripts

Backend

Backend changes: CORS headers added

cd mock_backend && yarn && nodemon .

Runs the backend with CORS headers.

Frontend

yarn

Installs the frontend dependencies.

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.\

yarn cy

Launches the cypress tests runner. Please don't forget to launch the application before running the tests.

yarn lint

Launches the eslint (typescript) linter.

yarn stylelint

Launches the stylelint (scss) check.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

About


Languages

Language:TypeScript 59.5%Language:JavaScript 28.7%Language:SCSS 9.0%Language:HTML 2.9%