Skip to content

cosmicjs/creative-agency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creative Agency

Creative Agency

A website for a creative agency. Includes team management, portfolio management and contact form (powered by MailGun).

  1. Log in to Cosmic JS.
  2. Create a Bucket.
  3. Go to Your Bucket > Apps.
  4. Install the Creative Agency App.
  5. Edit the MailChimp List URL Metafield to point to your MailChimp List. (see below)
  6. Deploy your Email Capture App to the Cosmic App Server at Your Bucket > Web Hosting.

Getting Started

git clone https://github.com/cosmicjs/creative-agency
cd creative-agency
yarn

Start app

yarn start

Start app connected to your Cosmic JS Bucket

COSMIC_BUCKET=your-bucket-slug yarn start

Open http://localhost:3000.

Setting up MailGun to send emails from the contact form

Because Node.js doesn't have a mail server, the contact form uses MailGun to send emails.

  1. Go to MailGun and login to your account or setup a new account.
  2. Get your api key and domain.
  3. To configure your deployed application, add your domain and api key to your environment variables (MAILGUN_DOMAIN, MAILGUN_KEY) located in Your Bucket > Web Hosting > Environment Variables, or hard code them into app.js (not advised).

About

A website for a creative agency built using Node.js and Cosmic JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages