Source code of my website
Create a new space and install color picker extension
Using Contentful CLI, import content models:
contentful space import --space-id <SPACE_ID> --content-file contentful/export.json
Create some projects entries and a single author entry.
Set following environment variables (or use a dotenv file):
- CONTENTFUL_SPACE_ID : The ID of your Contentful space
- CONTENTFUL_ACCESS_TOKEN : Your Contentful access token
- CONTENTFUL_AUTHOR_ENTRY_ID : The ID of the author entry
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# generate static project
$ npm run generate
Browse http://localhost:3000
Set following environment variable:
- GA_TRACKING_ID: Your Google Analytics tracking ID
Nothing else to do thanks to nuxt/google-analytics