Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miyaoka/siro-memo

Siro blog with Contentful & Nuxt
https://github.com/miyaoka/siro-memo

Last synced: 6 days ago
JSON representation

Siro blog with Contentful & Nuxt

Awesome Lists containing this project

README

        

# siro-memo

> contentful + Nuxt

## Usage

### Contentful env settings

- Copy `.env.sample` to `.env`
- Fill out tokens
- `CTF_BLOG_POST_TYPE_ID` from `Contentful > Content model`
- `CTF_SPACE_ID`, `CTF_CDA_ACCESS_TOKEN`, `CTF_CPA_ACCESS_TOKEN` from `Contentful > Space settings > API Keys > Content delivery / preview tokens`
- `CTF_MANAGEMENT_TOKEN` from `Contentful > Space settings > API Keys > Content management tokens > Personal Access Tokens`

### Preview post

- Open `Contentful > Space settings > Content preview`
- Set value `http://localhost:3000/posts/{entry_id}` into `Contentful preview URLs`
- In editting your content. Click `Open preview` will open your local server preview.

## Build Setup

```bash
# 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
```

For detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js).