• Stars
    star
    117
  • Rank 291,859 (Top 6 %)
  • Language
    JavaScript
  • License
    Other
  • Created almost 9 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A demo eCommerce site using Meteor.js - the code for this site can also be seen at Pluralsight.

An eCommerce Storefront Using Meteor.js, Bootstrap, Knockout, Stripe, and Postgres

I built this storefront a while back to test out some ideas and also to see where Meteor was at in terms of maturity etc. I was impressed.

Building things with Meteor is a lot of fun. There are a number of packages that support the development process and , all in all, the conceptual density of the whole thing is kind of low.

Have a look through the code - it all works - just add some products, a set of StripeKeys and off you go!

Installation

Pull the source from this repo (or just download it), and then:

  • Reset the settings.json and settings.development.json files
  • Remove the test data/imagery and replace with your own
  • Update the mup.json with your deployment settings

And you're off. The app currently stores order data in Postgres (I don't trust MongoDB, for no good reason. Also, I just like Postgres) and for that you'll need to create your checkout table:

drop table if exists checkouts;
create table checkouts(
	id serial primary key,
	reference_key uuid not null,
	cart_id varchar(50) not null,
	created_at timestamptz not null default now(),
	email varchar(255) not null,
	name varchar(255) not null,
	ip inet not null default '127.0.0.1',
	country_code varchar(2) not null default 'US',
	description varchar(255),
	items jsonb not null,
	billing_address jsonb,
	shipping_address jsonb,
	total decimal(10,2) not null default 0,
	terms_accepted boolean default false not null,
	processor varchar(20) not null default 'stripe',
	token jsonb,
	payment_details jsonb not null
)

Please note: jsonb support is only in Postgres 9.4+. If you need to use a lower version, change the datatype above to json.

Installing Postgres on Ubuntu 14.10 is recommended:

sudo apt-get update
sudo apt-get install postgresql-9.4

su postgres && cd

createdb [your db name]
psql [your db name]

#paste the create script above here

CREATE ROLE [your db user] WITH PASSWORD [your password];
GRANT ALL ON DATABASE [your db name] to [your db user];
ALTER TABLE checkouts OWNER TO [your db user];
\q
exit
exit

If you know how to install Postgres already - go with what you know :).

Screencast of the Building of This App

I work for Pluralsight and like to create screencasts about the things I'm working on - and I did that for this project. You can watch it here.

More Repositories

1

moebius

A functional query tool for Elixir
Elixir
596
star
2

dox

A Document Database API extension for Postgres
PLpgSQL
191
star
3

peach

An experimental ecommerce thing for Elixir
Elixir
150
star
4

congo

A MongoDB Explorer written in Backbone using Twitter Bootstrap. Part of Tekpub's Backbone.series
JavaScript
136
star
5

pg-auth

A complete authentication system built in Postgres using schemas and functions
PLpgSQL
119
star
6

mvc3

Code and Resources for Real-World ASP.NET MVC3
C#
107
star
7

ng-mongo

A MongoDB Explorer written on top of AngularJS and Node/Express
JavaScript
85
star
8

knockout-cart

A simple browser-based shopping cart that uses local storage, powered by KnockoutJS
JavaScript
82
star
9

mvcmusic

Harder Faster Better Stronger
C#
78
star
10

pg_docs_api

A simple abstraction for working with PostgreSQL as a Document Database
41
star
11

vim-settings

My vim action
Vim Script
37
star
12

dvdrental

The DVD Rental Scripts for Pluralsight's Postgres for .NET Developers
19
star
13

json-sales-data

A data generator for creating detailed, real-world sales data with fullfillments
JavaScript
19
star
14

azx

Azure App Services made easy
JavaScript
17
star
15

Vue.Starter

The ASP.NET Vue Starter Template
Vue
17
star
16

pg-dvdrental

The DVD Rental Sample App created for a Pluralsight Video
C#
13
star
17

node-application-patterns

JavaScript
13
star
18

node-pg-start

A Postgres-centric Node JS starter app built with Tailwind CSS and Express
CSS
8
star
19

azx.ms

Azure scripts made easy
CSS
8
star
20

little-sql

The Code for the Little SQL Book
Shell
6
star
21

dotnet-template

A template for you to create your own .NET template
6
star
22

js-inferno

Code for the Javascript Inferno talk
JavaScript
5
star
23

Svelte.Starter

The ASP.NET Svelte Starter Template with ASP.NET Minimal API, Svelte 3.0 and Tailwind
JavaScript
4
star
24

azure-project

A Heroku-inspired CLI for Azure's web applications
JavaScript
3
star
25

nuxt-walkthrough

The code for the Nuxt walkthrough vids
Vue
3
star
26

froggy-membership

Membership module for FroggyFrog
JavaScript
3
star
27

asp-js-docs

Using Vue, Angular and React with ASP.NET and Minimal API
Vue
2
star
28

capistrano-rails-server

Capistrano recipes for building a Rails 3/Nginx/Unicorn/Postgres/Memcached/Redis server, inspired by Railscasts
Ruby
2
star
29

troys-book

A repository for feedback on Troy Hunt's book.
2
star
30

Hacking-WebMatrix

The WebMatrix site built up for the Hacking WebMatrix series
C#
1
star
31

node-mongo-start

An Express app with Mongo DB starter, designed to work with Cosmos DB
CSS
1
star
32

velzy

JavaScript
1
star
33

rob.conery.io

My blog
JavaScript
1
star