xdesro / nuxt-netlify-cms-starter

🏞 A very spartan starter for using Nuxt.js with Netlify CMS.

Home Page:https://nuxt-netlify-cms-starter.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🏞 Nuxt & Netlify CMS Starter

A lot of the starter repos for Nuxt x Netlify CMS use a module like nuxtent or nuxtdown to manage flat file content. This project is meant to be a solution for those who don't mind doing a little more configuration to not have to rely on these dependencies.

πŸŽ‰ Getting Started

The quickest way to get started is with Netlify's hyper-convenient one-click Deploy To Netlify, which will automatically create an instance of this project on your GitHub account and deploy it instantly to Netlify.

Deploy to Netlify

Otherwise, you can follow these steps!

  1. πŸ‘―β€β™‚οΈ Clone the repository locally and cd into the directory.
git clone https://github.com/xdesro/nuxt-netlify-cms-starter

cd nuxt-netlify-cms-starter
  1. πŸ“¦ Install dependencies.
yarn install
  1. πŸ— Run the project for local dev. This will start a hot-reloading server at localhost:3000.
yarn dev
  1. 🌌 Build the app for server-side rendered deployment. See more about Universal SSR in the Nuxt.js docs.
yarn build

# And to serve that deployment...
yarn start
  1. ⚑️ Generate a fully pre-rendered static site. See more in the docs.
yarn generate

This project was bootstrapped with create-nuxt-app. There are more detailed explanations of how everything works in the Nuxt.js docs.

πŸ–‹ Activating Netlify CMS

This project comes with Netlify CMS ready to rumble, and a basic blog configuration. To use Netlify CMS:

πŸ” Authenticating with Netlify Identity

  1. Deploy to Netlify at least once.
  2. Go to Settings > Identity, and select Enable Identity service.
  3. Once enabled, select Settings and usage, and scroll down to Registration preferences. You can set this to either Open or Invite only, but usually Invite only is your best bet for a personal site.
  4. If you don't want to create an account, or would like to use an external provider such as GitHub or Google, you can enable those services under External providers.
  5. Scroll down to Services and click Enable Git Gateway.

πŸ” Media configuration

The default configuration expects you to run on Netlify's Large Media, which uses Git LFS. To configure this yourself read up on it here:

πŸ” Local Setup

  1. In your browser, navigate to localhost:3000/admin.
  2. Enter the Netlify URL of your site when prompted. (when using a different domainname host, use be sure to use the URL as provided by Netlify, not your domain host)
  3. Login with the account you created or one of the external providers, if you enabled them.

πŸ’β€β™€οΈ Questions? Concerns?

Feel free to reach out on Twitter. Friendly feedback and advice is always welcome. Contributions doubly so.

About

🏞 A very spartan starter for using Nuxt.js with Netlify CMS.

https://nuxt-netlify-cms-starter.netlify.com


Languages

Language:Vue 67.1%Language:JavaScript 25.2%Language:HTML 7.7%