Skip to content

Instantly share code, notes, and snippets.

View twilson63's full-sized avatar

Tom Wilson twilson63

View GitHub Profile
@twilson63
twilson63 / deploy.js
Last active October 31, 2018 20:28
Deploying API Server and React Client using now
const colors = require("colors");
const shell = require("shelljs");
if (!shell.which("now")) {
return console.log("exited: now is not installed - npm install now -g");
}
if (!shell.which("json")) {
return console.log("exited: json is not installed - npm install json -g");
}
@twilson63
twilson63 / create.js
Last active July 11, 2018 10:45
Basic React App Setup Script
const shell = require("shelljs");
const fs = require("fs");
const project = process.argv[2] || "app";
shell.echo("Installing code extensions...");
shell.exec("code --install-extension esbenp.prettier-vscode");
shell.exec("code --install-extension dbaeumer.vscode-eslint");
shell.echo("Create React Project " + project);
@twilson63
twilson63 / README.md
Created July 3, 2018 10:34
Parcel and Hot Module Reloading for React

Note to Self

React HMR using Parcel

Enabling HMR for React using Parcel steps:

  1. Install dev dependencies
yarn add babel-preset-env babel-preset-react babel-plugin-transform-class-properties --dev
@twilson63
twilson63 / app.js
Last active May 25, 2018 20:18
Swagger Example
/**
* @swagger
* /profiles/:
* post:
* description: "Description here"
* parameters:
* - name: FHIRBundle
* in: body
* required: true
* schema:
@twilson63
twilson63 / README.md
Last active May 20, 2018 13:32
Creating an Express Project

Node Express Setup

This setup should be converted to a cli when it becomes stable.

Use Case

To create an express web application with common tools and middleware.

Requirements

@twilson63
twilson63 / install.md
Created May 20, 2018 00:46
Install CouchDB Server on AWS using Bitnami and LetsEncrypt

How to install CouchDB on AWS in 5 minutes

Install CouchDB

Create an AWS Account, then open the console at EC2 and launch a bitnami couchdb

  • Create an aws account

https://console.aws.amazon.com

@twilson63
twilson63 / README.md
Created March 13, 2018 00:16
Pouchdb Server with MySQL Backend

PouchDB Server using a MySQL Backend

PouchDB server is a nodejs implementation of CouchDB. Below is the steps to use AmazonRDS and NowJS to deploy your own PouchDB Server. Using MySQL as a persistent backend.

Amazon Web Services

Create a Amazon Web Services Account

https://aws.amazon.com

@twilson63
twilson63 / README.md
Created March 1, 2018 19:51
Atom Setup for create-react-app

Atom Setup for Create-React-App

This is a short note on how to setup prettier and eslint for create-react-app applications in the atom editor.

Step 1

apm install prettier-atom 
@twilson63
twilson63 / README.md
Created November 22, 2017 16:28
AUTH0 Setup Notes

Auth0 Setup - Nov 2017

NOTE: if it has been greater than 3 months please revisit Auth0 Documentation.

Getting Started

If you do not have an auth0 account as a developer, then go to auth0 and sign up for an account. This will allow you to manage authentication and authorization for

@twilson63
twilson63 / README.md
Last active October 14, 2017 10:46
Getting Started with React Using NextJS

Getting Started with React Using NextJS

If you want hot reloading and server side rendering etc. The best approach for react is nextjs.

Clone This Repo for the fast approach!

Step 1

Create new directory