Description of Chrome Channels
- Install Chrome or Chrome Dev
- Note: Chrome and Chrome Dev use the same profile on a Mac
- Setup 2 profiles:
- Browsing: It may contain bookmarks, personal settings and extenstions
Description of Chrome Channels
For this challenge you will create a full suite of tests that confirm your app is working correctly. Then you'll setup Continuous Integration to ensure your app continues to work.
server.js
to support testsIn this challenge you will create a tags
and notes_tags
table which will setup a many-to-many relationship between notes and tags. You'll also create a new router to perform CRUD operations on the tags, and update the existing notes endpoints to work with tag related data.
To get started, let's update the .sql
script from the previous challenges. Create a tags
table and define 2 fields in the schema.
Node/Express/REST/Promises/Mocha/Chai
PostgreSQL and KNEX
Now that you have a good understanding of the Knex's capabilities, let's look at adding Knex to our Express app endpoints. Quit the nodemon drills.js
process and start the server.
Open Postman and navigate to http://localhost:8080/restaurants
. You should get back a list of restaurants. The SELECT statement is straight forward, the only thing to point out is the addition of in the `.then(results => res.json(results) );
Let's tackle the grade
first.
#!/usr/bin/env bash | |
# ~/.macos — https://mths.be/macos | |
# Close any open System Preferences panes, to prevent them from overriding | |
# settings we’re about to change | |
osascript -e 'tell application "System Preferences" to quit' | |
# Ask for the administrator password upfront | |
sudo -v |
/*********************************************************************************************************************** | |
*********************************************************************************************************************** | |
* CONTENTS: | |
* Native Object | |
* Object Literal | |
* Basic Object | |
* Psuedo-Class | |
* Self Executing/Invoking Structure | |
* Lazy Function | |
* Module Pattern |
Code Snippets for "Firebase Realtime Database and Flutter" https://www.youtube.com/watch?v=sXBJZD0fBa4
NOTES:
'use strict'; | |
const { LOGGLY_TOKEN } = require('../config'); | |
/** | |
* [Winston](https://github.com/winstonjs/winston) | |
* A multi-tranport async logging library | |
* | |
* Use winston to implement our logger, but the rest of the app uses | |
* the generic logger interface that we export. This decouples logging | |
* logic in our code from implementation with Winston. |