Nuxt.js Website Boilerplate

Community Articles
Community Articles Nuxt.js Website Boilerplate

Check out this website boilerplate built on Nuxt.js and Cosmic. It satisfies some common website requirements including dynamic pages, blog articles, author management, SEO ability, contact form and website search.

TL;DR

Download the GitHub repo
Check out the demo.

Features

1. Fully responsive down to mobile w/ Bootstrap frontend
2. SEO ready
3. A contact form that sends an email to your email(s) of choice and to Cosmic for easy reference
4. Full-site search functionality
5. All content is easily managed in Cosmic including pages, blog and contact info. Sign up for Cosmic to install the demo content and deploy this website. 

Get started 

git clone https://github.com/cosmicjs/nuxtjs-website-boilerplate
cd nuxtjs-website-boilerplate
npm install

Import the bucket.json file into your Cosmic bucket. To do this go to Your Bucket > Settings > Import / Export Data. 



 Run in production 

COSMIC_BUCKET=your-bucket-slug npm start 

Go to http://localhost:3000 

Run in development 

Create a config/development.js file and match it to config/production.js with your values. 

 npm run development 

 Go to http://localhost:5000

Env vars

As it states on the Nuxt.js website, you will need to set the environment variable HOST to 0.0.0.0.  This is already done in the package.json script for you, but you could also set this on the "Set Environment Variables" section located in Your Bucket > Settings > Deploy Web App.


Config 

Because Node.js doesn't have a mail server, the contact form uses mailgun to send the email. So add the following constants in the config file.


You may also like


In this tutorial, I'm going to show you how to create a minimalistic but awesome single page app blog using Vue, Vuex, Vuetify, Cosmic and deploy it to Netlify.
Cosmic makes it easy to manage content for your Bootstrap applications. In this blog we'll quickstart a Bootstrap Landing Page using the Cosmic CLI. This single page website landing page is built using Node.js and a minimal theme from Start Bootstrap.
Next.js is a React framework for building hybrid applications. It's flexible, extensible, and works great with any data provider. In this tutorial, we'll show how to get started with Cosmic CMS and Next.js.
In this blog we'll quickstart a React ToDo App using the Cosmic CLI. This is a simple todo application that consumes the Cosmic API and is built using React, Redux, Node.js and Webpack.
This article walks through an approach to build a web application using Angular and Cosmic to help generate marketing leads for your team.
Build a fully functioning messenger that can send SMS messages to application users. We will discuss Server side rendering of a React front, and leveraging a simple api in order to make protected requests to Cosmic cloud services.

Get Started with Cosmic

Build personal projects for free. Add your team at unbeatable prices.
Start Building Talk to Sales