Skip to content

elvisvidal/todo-nextjs

Repository files navigation

TODO React + Next

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.

NextJS React TailwindCSS Vitest Cypress Prisma TypeScript Vite

Other Implementations


Next

This is a Next.js project bootstrapped with create-next-app.

🛠 Setup

Run npm install to install the application dependencies.

Configure your .env file according to the provided .env.example to set up your database.

💽 Database Migrations

Execute npx prisma migrate dev to apply database migrations.

You can run npx prisma studio to watch updates on your database with Prisma.

🚀 Development

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.

🚀 Build

Run npm run build to build the project for production.

🧪 Test

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.


📚 Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

💻 Deploy on Vercel

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published