Skip to content

Instantly share code, notes, and snippets.

View dphurley's full-sized avatar

Danny Hurley dphurley

View GitHub Profile
@dphurley
dphurley / ! Webpack and Babel set-up
Last active June 8, 2017 19:55
WDI Webpack / Nodemon Configuration
npm install --save webpack
npm install --save glob
npm install --save babel-core babel-loader babel-preset-env babel-preset-es2015
npm install --save html-loader
{
"ignore": [
"./public/*/*.js",
"./client/*/*.js"
]
}
@dphurley
dphurley / ! .gitignore
Last active May 12, 2024 10:16
! .gitignore for Express app
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
@dphurley
dphurley / ! Angular on Rails with Webpack
Last active June 13, 2017 17:52
Angular on Rails / Webpack
npm install --save webpack
npm install --save glob
npm install --save babel-core babel-loader babel-preset-env babel-preset-es2015
npm install --save html-loader
npm install --save angular
# =================
# Bash Prompt
# =================
# Show more information regarding git status in prompt
GIT_DIFF_IN_PROMPT=true
# --------------------
# Colors for the prompt
# --------------------
const express = require('express')
const app = express();
const studentsController = require('./controllers/students_controller')
app.use('/students', studentsController)
const port = 3000;
app.listen(port, () => {
console.log(`Express started on ${port}`)
const express = require('express')
const router = express.Router()
router.get('/', (request, response) => {
response.send('I work!')
})
module.exports = router
"\e[A":history-search-backward
"\e[B":history-search-forward
import axios from 'axios'
export function saveAuthTokens (headers) {
// Set Axios Headers with Auth tokens for the next request.
axios.defaults.headers['access-token'] = headers['access-token']
axios.defaults.headers.client = headers.client
axios.defaults.headers.uid = headers.uid
axios.defaults.headers.expiry = headers.expiry
// Save Auth tokens to localStorage to persist log-in if the window is closed

Overview

New York City Search Engine

The City of New York has a data API they would like to add a front-end to. The API handles the ability to search for keywords or limit results you will be making requests to this API and displaying it's results. On top of a front-end, the City would also like the ability to save and manage User information (without any need for authentication).

The city has requested proposals for a solution to their problem. Your assignment is to build and execute on a solution, from proposal through delivery.