Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/miyaoka/siro-memo
- Owner: miyaoka
- Created: 2018-02-15T01:42:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:09:03.000Z (11 months ago)
- Last Synced: 2023-12-15T06:26:56.261Z (11 months ago)
- Language: Vue
- Homepage: https://siro-memo.netlify.com/
- Size: 834 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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).