elvisvidal / todo-nextjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:TypeScript 66.7%Language:JavaScript 30.9%Language:CSS 2.5%