- Use React, node.js and typescript for your application
- Authentication and DB are not needed
- Spend around 3 hours on this project
- The main purpose of this application is to create a webpage to validate a Credit Card number
- Use the Luhn checksum algorithm for validation
- Validation should happen in the back-end (API) not the frontend
- At least one text box should be included for credit card input
- Screen should display if the number is valid or not
Do the following commands
- npm install
- npm run dev (to start)
- npm run test (to run test scripts)
Tech Stack
- React
- Typescript
- Node
- Remix
- Tailwind
TODO
- Improve UI
- Allow credit card input to take different amounts of characters to allow for all card types
- Autoformat input to add a space every 4 characters to improve readability
- Make CreditCard input and Alerts their own components
- Improve Accessibility
- Move validation code into its own file
- Add unit tests for UI