Skip to content

Luk-z/strapi-starter-next-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strapi Starter Next Blog

Next starter for creating a blog with Strapi.

screenshot image

This starter allows you to try Strapi with Next with the example of a simple blog. It is fully customizable and due to the fact that it is open source, fully open to contributions. So do not hesitate to add new features and report bugs!

Features

  • 2 Content types: Article, Category
  • 2 Created articles
  • 3 Created categories
  • Responsive design using UIkit

Pages:

  • "/" to display every articles
  • "/article/:id" to display one article
  • "/category/:id" display articles depending on the category

Getting started

The easiest way to try this starter is to run it locally on your computer.

First, you'll need to create your own copy of this starter. You can do so by clicking the "Use this template" button on GitHub, and filling the form

Backend

Create a Strapi project named backend using the blog template:

# Using Yarn
yarn create strapi-app backend --template https://github.com/strapi/strapi-template-blog

# Or using NPM
npx create-strapi-app backend --template https://github.com/strapi/strapi-template-blog

The Strapi server will automatically start and import sample seed data.

Frontend

Leave the Strapi backend running in the background. Open another terminal tab, and make sure you're in the frontend directory:

cd frontend

Install dependencies and start the Next.js server:

# Using yarn
yarn install
yarn develop

# Using npm
npm install
npm run develop

If you want to change the default environment variables, create a .env.local file like this:

cp .env.local.example .env.local

Next server is running here => http://localhost:3000

Enjoy this starter!

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published