Skip to content

irongollem/crocode

Repository files navigation

🏞 Nuxt & Netlify CMS Starter

Netlify Status

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.

🔐 Local Setup

  1. In your browser, navigate to localhost:3000/admin.
  2. Enter the Netlify URL of your site when prompted.
  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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published