With the evolution of the internet and its various tools, I often find myself learning much easier with a hands-on approach, gradually increasing the difficulty with chunks of functionality and complexity.
Despite the simplicity of a todo app, it is a great first project to implement:
- Simple well-known interface: Common UX.
- Basic UI components Powered with CSS framework: TailwindCSS.
- Simple navigation: List page and Edit page.
- CRUD operations: Create, read, update, delete.
- API response handling: Success and error.
- ORM: using Prisma to abstract database interactions.
- Continuous Integration (CI): Utilizes GitHub Actions to automate the testing and deployment pipeline.
- End-to-end and Component tests: combining Cypress and Vitest.
This is a Next.js project bootstrapped with create-next-app
.
Run npm install
to install the application dependencies.
Configure your .env
file according to the provided .env.example
to set up your database.
Execute npx prisma migrate dev
to apply database migrations.
You can run npx prisma studio
to watch updates on your database with Prisma.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
Run npm run build
to build the project for production.
Run npm run test:e2e
or npx cypress open
to execute end-to-end tests with Cypress.
Run npm run test:unit
to execute unit tests with Vitest.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.