Skip to content

Instantly share code, notes, and snippets.

View J6K's full-sized avatar

Justin Kang J6K

  • Weedmaps
  • Los Angeles, CA
View GitHub Profile
@J6K
J6K / express.md
Last active March 20, 2019 19:16
express sample and quick examples and descriptions of body, params, and query

ExpressJS

All examples are using ReactJS as the frontend library and Axios as the request handler.

General

For now, think of servers as the middle man between the client and the database.

The only thing the client really needs is information from the database but it's not safe for clients to directly connect to databases and query information for themselves.

@J6K
J6K / app.js
Created June 29, 2018 21:41
AngularJS Core Concepts
//setup and start
//first 'gotcha' of angular
//html likes hyphens = skewer case
//Example: what-up
angular.module('app', [])
.component('todoList', { //LOOK AT ME
template: `
<h1>Todo List</h1>
<input>
<button>add</button>