A Nuxt.js server side rendered blog application (PWA included) based on Contenful API.
To run a blog, firstly you have to connect with API. To do that follow below steps:
Sign up for Contentful.
Log into Contentful and create new space. During creating new space you have to choose Create an example space
and then select Blog
tab.
Clone the repository.
Inside api
directory copy/paste config.js.sample
file and rename to config.js
.
Overwride config.js
with data form Contentful blog space.
# install dependencies
$ npm install # Or yarn install
# serve with hot reload at localhost:3000/nuxt-blog
$ npm run dev
# build for production and launch server
$ npm run build
$ npm start
# generate static project
$ npm run generate
For detailed explanation on how things work, checkout the Nuxt.js docs.