A basic blog using Next.js 14 to create, view, edit and delete posts.
Here is a demo link for this project.
Run in development mode
npm run dev
Run in production mode
npm run start
npm run test
npm run build
npm run lint
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
project/
├── __mocks__/ Mocks for tests
├── app/ All pages are located here
├── constants/ Self descriptive
└── models/ API related types
├── providers/ Self descriptive
├── queries/ React queries for client side data fetching
├── styles/ Shared styles
├── types/ Non API related types
├── utils/ Utility functions
Unit and snapshot tests using:
Tests are located next to the file/component being tested.
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!