This is a simple Todo List app built with Next.js, React, Typescript and Axios. It allows you to manage your todos, mark them as completed, remove them from the list and test the Markdowns and Removes using Jest.
To get a local copy of this project up and running, follow these steps:
Make sure you have Node.js and npm (or yarn) installed on your machine.
Open your terminal and navigate to the directory where you want to clone the project.
cd todo-list-app
npm install or yarn install
Don't forget to create an environment file .env and create a constant with the API endpoint as a global variable, otherwise it won´t work!
NEXT_PUBLIC_API=https://jsonplaceholder.typicode.com/todos
npm run dev or yarn dev
The app will now be running at http://localhost:3000. Open your web browser and navigate to that URL to access the Todo List app.
https://daisyui.com/docs/install/
https://flowbite.com/docs/getting-started/next-js/
This app uses the JSONPlaceholder API as a fake backend for testing purposes. No actual data is persisted.
git clone https://github.com/your-username/todo-list-app.git
These test cases cover the basic functionality of the
This test cases ensures that the Home Page component renders properly with mocked data and verifies that the TodoList component is loaded correctly within it. By running these tests, you can validate that the Home Page component behaves as expected under specific conditions and that the integration with the TodoList component works as intended.
Run the command
npm run test