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!
Click here to view a demo website (Medical Professional)
- Fully responsive down to mobile w/ Bootstrap frontend
- SEO ready
- A contact form that sends an email to your email(s) of choice and to Cosmic JS for easy reference
- Full-site search functionality
- 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.
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.
COSMIC_BUCKET=your-bucket-slug npm start
Go to http://localhost:3000.
Create a config/development.js file and match it to config/production.js with your values.
npm run development
Go to http://localhost:5000.
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].
