Heroku --Data Solutions (focusing on database type solutions)
MongoDB (3 vendors), MySQL (cleardb vendor), Postgres, Redis and more
GO HERE FOR MongoDB example !!!!!!!!!!!!!!!!
Postgress Example (beginning)...STEP 1: Start by setting up the use of postgress addon inside your applicaiton directory on your development machine type
STEP 2: create the code in index.js (or wherever) to access/manipulate your database as you see fit and create any supporting view pages in views/pages directory//PUT INSIDE YOUR index.js file (or whereever) // Assumes DATABASE_URL in the heroku configs points to your PostGres database // setups the url /db to connect to database and does a query from a table test_table var pg = require('pg'); STEP 3: Create the Postgress Database table you will be using. To do this you must install locally same version of postgress as Heroku uses. It will have a module called pg that contains psql for doing this.
STEP 4: run your /db url
|
MongoDB Example ...read all about on Heroku MLab MongoDB page |
MySQL Example (beginning)....NOTE: at this time you must put credit card on account (even if using the free tier ignite level of MySQL) -- this is called verification see https://devcenter.heroku.com/articles/account-verification.... THESE POLICIES ARE SET BY HEROKU AND CAN CHANGE AT ANY TIME
|
Using Heroku web console rather than command line