Skip to content

Instantly share code, notes, and snippets.

View curranabell's full-sized avatar

Curran curranabell

View GitHub Profile
@curranabell
curranabell / nginxproxy.md
Created July 9, 2017 20:27 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@curranabell
curranabell / meteor-publish-example
Last active June 13, 2017 21:20
Meteor Subscribe Example
// Only executed on the server
import _ from 'lodash';
import { Meteor } from 'meteor/meteor';
import { Employees } from '../imports/collections/employees';
import { image, helpers } from 'faker';
Meteor.startup(() => {
//Great place to generate data
//Check to see if data exists in the collection
//See if the collection has any records
@curranabell
curranabell / run-marketplace
Created May 25, 2017 16:41
Running a Marketplace
Marketplace
View our marketplace feature roadmap and progress on our waffle
How to test drive the marketplace feature branch
0. Prerequisites
Get your system ready for Reaction
Install the reaction-cli tool
@curranabell
curranabell / deploy-reaction
Last active February 25, 2018 15:17
Deploy ReactionCommerce with Docker, Digital Ocean/AWS, and Lets Encrypt SSL
1. Create mongodb with mLab and then link to reaction with url:
mongodb://username:password@host:port/database-name
docker-machine create \
--driver digitalocean \
--digitalocean-access-token access-token-here \
--digitalocean-size 2gb \
--digitalocean-region sfo1 \
reaction