Skip to content

iampawan31/nuxt-blog

 
 

Repository files navigation

nuxt-blog

A Nuxt.js server side rendered blog application (PWA included) based on Contenful API.

Conecting with API

To run a blog, firstly you have to connect with API. To do that follow below steps:

  1. Sign up for Contentful.

  2. Log into Contentful and create new space. During creating new space you have to choose Create an example space and then select Blog tab.

  3. Clone the repository.

  4. Inside api directory copy/paste config.js.sample file and rename to config.js.

  5. Overwride config.js with data form Contentful blog space.

Build Setup

# install dependencies
$ npm install # Or yarn install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm start

# generate static project
$ npm run generate

License

  • MIT

For detailed explanation on how things work, checkout the Nuxt.js docs.

About

A Nuxt.js server side rendered blog app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 57.2%
  • JavaScript 42.0%
  • CSS 0.8%