Create and initialize your a directory for your Express application.
$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init| // config/passport.js | |
| // load all the things we need | |
| var LocalStrategy = require('passport-local').Strategy; | |
| var mysql = require('mysql'); | |
| var connection = mysql.createConnection({ | |
| host : 'localhost', | |
| user : 'root', |
| import React, { Component } from 'react'; | |
| import axios from 'axios'; | |
| import './App.css'; | |
| class App extends Component { | |
| constructor() { | |
| super(); | |
| this.state = { | |
| images: [], |