Nepolog is a Portfolio and Blog website created with Next.JS for Blogs using Strapi.
git clone https://github.com/nizariyf/nepolog my-project
cd my-project
npm install
npm run dev # run development
npm run build # create .next directory
npm run start # start server
Follow the instructions on this page to create a Strapi project locally.
From Content-Types Builder, create a new collection type.
- The display name should be
Author
.
Next, add these fields (you don't have to modify the settings):
- Text field called
name
(Short text) - Media field called
picture
(Single media)
Then click Save.
From Content-Types Builder, create a new collection type.
- The display name should be
Post
.
Next, add these fields (you don't have to modify the settings unless specified):
- Text field called
title
(Short text) - Rich Text field called
content
(Multiple-paragraph Text) - Text field called
excerpt
(Long text) - Media field called
coverImage
(Single media) - Date field called
date
(type should be date) - UID field called
slug
(attached field should be title) - Relation field called
author
(Post has one Author) - Enumeration field
status
(the values should be published and draft)
From Settings, Users & Permissions, Roles, edit the Public role.
Then select: count
, find
, and findone
permissions for both Author and Post. Click Save.
There are still many shortcomings so apologize if something is missing or imperfect because I myself have just learned Next.JS