It's just a proof of concept.
💡 Feel free to add any improvement/suggestion you consider.
This is a conceptual test using the following technologies:
- React.
- TypeScript.
- Vite.
- Bulma.
- Simple
/login
page to perform a submit operation, a fake authorization, and finally we set a cookie. - Redirects to
/home
and persist the session even if we close the browser's tab/app.
Basic TODO app that allows you to: Add, Edit, List, and Delete tasks.
- Whenever we close the browser's tab/app, the tasks should persist.
- Task should be removed as soon as we sign out of the app.
Tasks are being persisted in
LocalStorage
.
The project requires Node.js.
Clone the repository:
git clone https://github.com/christianjtr/todo-app.git
demo.mp4
Click on the following link (GitHub page project):
https://christianjtr.github.io/todo-app
npm run dev
npm run build
Here, we are using ESLint.
npm run lint
Tools used for testing:
npm run test
npm run cy:e2e
Samples:
- Testing a custom react hook.
- A faked API service call.
- Mounting and rendering a component.
<Login />
.
📝 In case you need to update a snapshot
, run this command:
npm run test -- -u
Samples:
- Visit
/login
page. - Perform a submit operation:
- Visiting page.
- Filling in login form.
- Setting the cookie.
- Check URL change.
React, TypeScript, Bulma, Vite, React Testing Library, Cypress.