Skip to content

Instantly share code, notes, and snippets.

View cohenadair's full-sized avatar

Cohen Adair cohenadair

View GitHub Profile
@cohenadair
cohenadair / firebase-sandbox.md
Last active September 26, 2023 05:39
Setting up development and production Firebase environments for iOS

Firebase Environments

Last updated: October 21st, 2019.

At the time of writing this gist (January 4th, 2017), I was unable to find true sandboxing to separate development and production environments for a Firebase project. The closest we can get is to create two separate Firebase projects -- one for development and one for production.

Pros

  • Complete separation and isolation of all Firebase features.
  • Freedom to experiment without risking the corruption of production data.

Cons

@cohenadair
cohenadair / node-setup.md
Last active October 15, 2023 12:19
How to quickly setup a Node.js REST API with Express, Mocha, and supertest.

tl;dr

  1. Download and install Node.js
  2. Download and extract the Sample Project
  3. In a Terminal window, navigate to the extracted folder
  4. Run npm install
  5. Run the app

Introduction

This guide is meant to be a very quick setup for a Node.js REST API. It will include links to each component if you'd like to read more.

Note that I use macOS, so the commands may be slightly different on a non-Unix machine.