Skip to content
Starting point for a basic express api
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
public/stylesheets
routes
views
.gitignore
Procfile
README.md
app.js
package-lock.json
package.json

README.md

express-sql-heroku-starter

If you're not at the point where you're deploying to heroku, or using the heroku local web command.

Find these lines in config/config.js

module.exports = connection = mysql.createConnection({
  process.env.YOUR_DEPLOYMENT_DB_VARIABLE
})

And replace them with the following:

module.exports = connection = mysql.createConnection({
  host: 'localhost',
  user: 'root',
  password: '****',
  database: 'your_local_db_name'
})

To connect to your local SQL server, via MAMP/phpMyAdmin, etcetc.

OTHERWISE

npm install dependencies heroku local web fires up at localhost:5000

You can’t perform that action at this time.