This is a Next.js project bootstrapped with create-next-app
.
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.
- Post Form Submitting
- Sign in by NextAuth
- Get all posts: GET http://localhost:3000/api/posts/
- Get post by id: GET http://localhost:3000/api/posts/661420929ddda5bd9f260af4
- Create a new post: POST http://localhost:3000/api/posts
- Update post by id: PUT http://localhost:3000/api/posts/661420929ddda5bd9f260af4
- Delete post by id: DELETE http://localhost:3000/api/posts/661420929ddda5bd9f260af4
- Get posts by catName: GET http://localhost:3000/api/categories/Technology
- Get all categories: GET http://localhost:3000/api/categories/
- Get post by author: GET http://localhost:3000/api/authors/miluo@udel.edu