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 selectBlog
tab. -
Clone the repository.
-
Inside
api
directory copy/pasteconfig.js.sample
file and rename toconfig.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
- MIT
For detailed explanation on how things work, checkout the Nuxt.js docs.