Next.js Blog with microCMS
Description
A simple blog, built with Next.js and microCMS.
npx boilerapp nextjs-blog-with-microcmsDocumentación
Simple Blog with microCMS

This is an official microCMS simple blog template.
This blog is built using microCMS, a headless CMS made in Japan, and Next.js.
This template supports authoring and editing the following blog content and information:
- Blog details
- Writer
- Tags
Demo
https://simple-blog-with-microcms.vercel.app/
Configuration
Create an account and a service on microCMS
- Create an account on microCMS.
- Create a new empty service from the dashboard. When creating the service, please select "Create your own".
- Enter any value you like for Service Name and Service ID.
- You now have a new service created that you can access!
Create APIs
You will need to create three APIs, all in the list format.
Create tag API.
The tag API is for creating tags associated with blog content. Blog content can have multiple tags set within the tag API.
- Go to
/create-api(https://your-service-id.microcms.io/create-api) and select "Create your own". - Enter basic API information:
- API Name: tag
- Endpoint: tags
- Select API Type and choose List Format.
- Define API Schema. The
tagAPI has one field:name- Text Field. Field ID and Display Name should be set toname.
- Click "Create" and continue.

Create writer API
The writer API is for creating author information and associating it with each blog article. A blog article can only have one writer set in the writer API.
- Go to
/create-api(https://your-service-id.microcms.io/create-api) and select "Create your own". - Enter basic API information:
- API Name: writer
- Endpoint: writers
- Select API Type and choose List Format.
- Define API Schema. The
writerAPI has three fields:name- Text Field. Field ID and Display Name should be set toname.profile- Text Area. Field ID and Display Name should be set toprofile.image- Image Field. Field ID and Display Name should be set toimage.
- Click "Create" and continue.

Create blog API
The blog API is for creating blog content.
- Go to
/create-api(https://your-service-id.microcms.io/create-api) and select "Create your own". - Enter basic API information:
- API Name: blog
- Endpoint: blog
- Select API Type and choose List Format.
- Define API Schema. The
blogAPI has six fields:title- Text Field. Field ID and Display Name should be set totitle.description- Text Area. Field ID and Display Name should be set todescription.content- Rich Text Editor. Field ID and Display Name should be set tocontent.thumbnail- Image Field. Field ID and Display Name should be set tothumbnail.tags- Multiple Content References - tag. Field ID and Display Name should be set totags.writer- Content Reference - writer. Field ID and Display Name should be set towriter.
- Click "Create" and continue.

Enter Content
-
Enter content for the
tagAPI,writerAPI, andblogAPI. Since thetagAPI andwriterAPI are referenced from theblogAPI, please create theblogAPI content last. -
Go to the
/apis/[tags|writers|blog]/createendpoint, click "+ Add\
Prix
Gratuit