Skip to content

Leoglme/nuxt-strapi-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Strapi Nuxt Js Blog

A simple blog made with nuxt strapi

@nuxtjs/strapi

This starter uses the Strapi blog template

Check out all of our starters here

Features

  • Content types: Articles, Categories
  • Created articles
  • Created categories
  • Permissions set to true for article and category
  • Responsive design using UIkit

Pages:

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

Install

$ git clone https://github.com/Leoglme/nuxt-strapi-blog
$ cd nuxt-strapi-blog
$ cd backend && yarn install && yarn dev
$ cd frontend && yarn install && yarn dev

The Nuxt frontend server will run here => http://localhost:3000

The Strapi backend server will run here => http://localhost:1337

Deploying to production

You will need to deploy the frontend and backend projects separately. Here are the docs to deploy each one:

Don't forget to setup the environment variables on your production app:

For the frontend the following environment variable is required:

  • BACKEND_URL: URL of your Strapi backend, without trailing slash