Everything important is inside our Google doc. If you do not have permissions to read or edit it, please contact us (message @jessicalc) and we can add you.
Don't forget to rebase first!!!
You can call it feat/heroku_deployment_[date].
Ideal steps would be:
git checkout master
git pull --rebase upstream master
git checkout -b feat/heroku_deployment_[date]
gulp
This will concatenate and minify our js.
Optionally, you can remove the commented-out <script srcs>
in the <head>
of dateClient/www/index.html
. (They're there to help us develop, but don't need to be there in the deployed index.html file)
- On line 12, remove
var config = require('../secret/config')
- On lines 18 and 19, comment out
|| config.clientID
and|| config.clientSecret
respectively, like so:
var clientID = process.env.FS_ID; //|| config.clientID;
var clientSecret = process.env.FS_SECRET; // || config.clientSecret;
git push heroku feat/heroku_deploy_[YOURDATEHERE]:master -f
(You have to use -f to force it to override whatever is at heroku).
We have written scripts to help seed the Neo4j database with the generic date ideas that are then tied to venue categories in Foursquare's database.
Your local database should be at http://neo4j:password@localhost:7474
.
For the remote database, please consult the Google doc.
- Clear your local database by navigating to http://neo4j:password@localhost:7474 and running this command in the Neo4j console:
MATCH(n) OPTIONAL MATCH(n)-[r]-() DELETE n, r;
- Make sure
dateServer/models/db.js
has the correct database in it (if you are developing locally, it should behttp://neo4j:password@localhost:7474
) - cd to
dateServer/data-helpers
- Run
node seedAllLocal.js
- Verify that nodes are connected by going back to the Neo4j gui and clicking on the
is
tag underRelationship Types
. You should be able to see events connected to tags.
- Clear your local database by navigating to our remote Neo4j database and running this command in the Neo4j console:
MATCH(n) OPTIONAL MATCH(n)-[r]-() DELETE n, r;
- Make sure
dateServer/models.db.js
has the remote database URL in it in place of the local db in the url option. You can grab it from our Google doc.
var db = new neo4j.GraphDatabase({
// Support specifying database info via environment variables,
// but assume Neo4j installation defaults.
url: process.env['NEO4J_URL'] || process.env['GRAPHENEDB_URL'] ||
'http://neo4j:password@localhost:7474',
auth: process.env['NEO4J_AUTH']
});
- cd to
dateServer/data-helpers
- run
node seedAllRemote.js
- Verify that the nodes are connected by going to the Neo4j gui (you can find the link in the gdoc above) and clicking on the
is
tag underRelationship Types
. You should be able to see events connected to tags.
These steps were last verified to be working on 5 Nov 2015.