Skip to content

mdheller/nodejs-website-boilerplate

 
 

Repository files navigation

Node.js Website Boilerplate

A website template that satisfies some common website requirements including dynamic pages, blog articles, author management, SEO ability, contact form and website search. Content powered by Cosmic JS. Contributions welcome!

Demo

Click here to view a demo website (Medical Professional)

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 JS for easy reference
  4. Full-site search functionality
  5. All content is easily managed in Cosmic JS including pages, blog and contact info.

Sign up for Cosmic JS to install the demo content and deploy this website.

Get started

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

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

Import Bucket

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.

Config

Contact email

Because Node.js doesn't have a mail server, the contact form uses an SMTPS string to connect to your mail server of choice. To do this, add an SMTPS_STRING to your ENV vars in your Cosmic JS bucket. This is located in Your Bucket > Settings > Deploy Website. An example string looks like: smtps://yourname%40gmail.com:[email protected].

About

A Node.js website boilerplate that satisfies some common website requirements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 76.0%
  • JavaScript 17.2%
  • HTML 6.8%