Tracker ID: #ADD LINK TO PIVOTAL STORY
Unit tests completed?: (Y/N)
PR Branch #ADD LINK TO PR BRANCH
Code Coverage & Build Info
/* your basic JavaScript strings, but with back-ticks. | |
notice the lack of escape characters needed for things | |
like single quotes, double quotes, and apostrophes | |
when back-ticks are employed */ | |
const fooString = `A string called 'fooString'`; | |
const barString = `Another string named "barString"`; | |
const bazString = `Without fooString and barString, you can't have bazString, right?`; |
// just a normal string in one line - not much different from a traditional string | |
const simpleString = `a template literal is surrounded by backticks`; | |
// a string spread across multiple lines | |
const multiLineString = `it can be spread across | |
multiple lines with just | |
one set of enclosing backticks`; | |
const name = "Paige"; |
const string1 = 'this is a string in single quotes'; | |
const string2 = "this is a string in double quotes"; |
Tracker ID: #ADD LINK TO PIVOTAL STORY
Unit tests completed?: (Y/N)
PR Branch #ADD LINK TO PR BRANCH
Code Coverage & Build Info
import passport from 'passport'; | |
module.exports = app => { | |
app.get('/findUser', (req, res, next) => { | |
passport.authenticate('jwt', { session: false }, (err, user, info) => { | |
if (err) { | |
console.log(err); | |
} | |
if (info != undefined) { | |
console.log(info.message); |
import Sequelize from 'sequelize'; | |
import UserModel from './models/user'; | |
const sequelize = new Sequelize('<table name>', '<db username>', '<db password>', { | |
host: '<host - could be localhost or service name for docker-compose service>', | |
dialect: 'mysql <or whichever SQL dialect you choose>', | |
}); | |
const User = UserModel(sequelize, Sequelize); |