Skip to content

Latest commit

 

History

History
82 lines (72 loc) · 1.41 KB

README.md

File metadata and controls

82 lines (72 loc) · 1.41 KB

Blog: powerd by Nuxt.js & Contentful & Vercel

Blog's URL: https://mycode.rip

Development

Using local Node.js

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000 after a few seconds later
$ yarn run dev

Using Docker

# install dependencies
$ docker-compose run --rm node yarn install

# serve with hot reload at localhost:3000 after a few seconds later
$ docker-compose up

Contentful Post model

{
  "name": "Post",
  "description": "",
  "displayField": "title",
  "fields": [
    {
      "id": "title",
      "name": "Title",
      "type": "Symbol",
      "localized": false,
      "required": true,
      "validations": [
        {
          "unique": true
        }
      ],
      "disabled": false,
      "omitted": false
    },
    {
      "id": "slug",
      "name": "Slug",
      "type": "Symbol",
      "localized": false,
      "required": true,
      "validations": [
        {
          "unique": true
        },
        {
          "regexp": {
            "pattern": "[a-z0-9]",
            "flags": ""
          }
        }
      ],
      "disabled": false,
      "omitted": false
    },
    {
      "id": "content",
      "name": "Content",
      "type": "Text",
      "localized": false,
      "required": true,
      "validations": [],
      "disabled": false,
      "omitted": false
    }
  ],
  "sys": {...}
}