Skip to content

cosmicjs/ecommerce-app

Repository files navigation

Angular JS Ecommerce App

Angular JS Ecommerce App

An Angular JS ecommerce app that allows you to:

  1. Process orders from customers and accept Stripe payments for goods and services.
  2. Manage inventory in your Cosmic JS Dashboard or in the admin area on the website.

Get Started

Sign up for Cosmic JS to start managing content for your websites and applications faster and easier.

Building and running the server (performs a gulp command prestart):

git clone https://github.com/cosmicjs/ecommerce-app
cd ecommerce-app
npm install
COSMIC_BUCKET=your-bucket-slug READ_KEY=your-read-key WRITE_KEY=your-write-key STRIPE_KEY=your-public-key STRIPE_SECRET=your-private-key npm start

Then go to http://localhost:3000

Admin area

Go to http://localhost:3000/#/login to manage your products and orders.

In Production

Deploy to Now or Heroku

Deplow to Now from the root folder:

now

More information can be found on the Now website.

Deplow to Heroku from the root folder:

heroku create
git push heroku master

More information can be found on the Heroku website.

Add Stripe Keys

After you deploy go to the resective area in either service to add your STRIPE_KEY and STRIPE_SECRET environment variables.