

Strapi Starter Next Blog
source link: http://brianyang.com/strapi-starter-next-blog/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Strapi Starter Next Blog

Maxime Castres
February 20, 2020
If you are familiar with our blog you must have seen that we've released a series of tutorials on how to make blogs using Strapi with a lot of frontend frameworks: Gatsby Old, Gatsby new, React, Next.js, Vue, Nuxt or Angular.
We thought that it would be a good idea to provide the result of these tutorials as starters for those who'd like to bootstrap a simple blog application with Strapi and their favorite frontend framework.
We already released the React Starter, Gatsby Starter, Vue Starter and we keep moving with the Next Starter.
Why did we make these starters?
Starters allow you to quickly visualize the result of the association between Strapi and your frontend framework.
It's easier and faster to dig into an existing application to get an idea of the product than to start an application from scratch.
As we've made tutorials on how to make a blog with this or that framework, it seemed useful for the Strapi community to use the resulting application in order to create starters.
So to get started with the starter, you have two options:
You can start by installing the starter and then following the tutorial to reproduce it and learn on the way.
Or you can run the starter to directly test the application.
So, let's see how to run it!
Getting started
Clone the repository and install dependencies
git clone https: //github.com/strapi/strapi-starter-next-blog.git cd strapi-starter-next-blog # Using yarn
yarn setup: yarn# Using npm
npm run setup: npm
Scaffold your project
This command will launch both of your backend and frontend server and do a data migration in your backend server.
#
Using yarn
yarn build: yarn yarn develop: yarn# Using npm
npm run build: npm npm run develop: npm
Alternatively, you can still start your servers separately:
Start the backend server
cd backend# Using yarn
yarn build yarn develop# Using npm
npm run build npm run develop
Start the frontend server
cd frontend# Using yarn
yarn develop# Using npm
npm run develop
Next server is running here => http://localhost:3000
Strapi server is running here => http://localhost:1337
Features
- 2 Content types: Article, Category
- Permissions set to
true
for article and category - 2 Created articles
- 3 Created categories
- Responsive design using UIkit
Pages
- "/" display every articles
- "/article/:id" display one article
- "/category/:id" display articles depending on the category
If you liked it, it would be great to share the word 📣 And let me know what you thought of it in the comments below.
Enjoy this starter!
News in your inbox
Did you enjoy this article? Subscribe to get the latest posts and the most important updates!
Recommend
-
40
Lately, I’ve been researching for a fast and simple way to develop a back office in JavaScript, without the need to write everything from scratch. During my research, I found two great options –
-
24
If you're a web developer these days, then it is nearly a certainty that you have heard ofNetlify. I...
-
38
Strapi beta is out. Welcome to the future of content management! Strapi beta has finally arrived. We're so excited about this release, our biggest release to date. Discover the new features.
-
33
From an observers’ point-of-view, building a product may seem like an easy mission. But, in reality, it is very challenging to build a product that perfectly answers the multiple needs of your users. And it is even more ch...
-
31
Last month, the Strapi team went up in the mountains into a superb chalet to brainstorm and find opportunities for the future of the project.
-
17
使用 Nuxt (Vue.js)、Strapi 和 Apollo 构建博客 几周前,我对自己上网的习惯进行了思考,具体来说,我主要思考了在放松状态下自己喜欢读些什么。通常我是这样做的:先进行搜索,然后去浏览最让我感兴趣的链接。然而最后发现,我总是在阅读有关别人人生...
-
11
The evolution of CDN (Content Delivery Networks) an...
-
8
How to Build a Blog with Strapi, Netlify, and React 👨💻December 10th 2020 1
-
8
-
7
Building a Blog App Using Strapi, React and GraphQLA tutorial on how to create a blogging web application using Strapi CMS, React and GraphQL.Published...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK