To get started with Rails we need to install the gem. From the terminal type:
{% terminal %}
$ gem install rails
Fetching: i18n-0.6.1.gem (100%)
Fetching: multi_json-1.3.6.gem (100%)
Fetching: activesupport-3.2.8.gem (100%)
...
{% endterminal %}
To get started with Rails we need to install the gem. From the terminal type:
{% terminal %}
$ gem install rails
Fetching: i18n-0.6.1.gem (100%)
Fetching: multi_json-1.3.6.gem (100%)
Fetching: activesupport-3.2.8.gem (100%)
...
{% endterminal %}
| require_relative 'node' | |
| class BinarySearchTree | |
| attr_accessor :root | |
| def initialize | |
| @root = Node.new | |
| end | |
| def insert(value, movie) |
| var request = require('request') | |
| var MongoClient = require('mongodb').MongoClient | |
| , assert = require('assert'); | |
| // Connection URL | |
| var url = 'mongodb://localhost:27017/spike'; | |
| // Use connect method to connect to the server | |
| MongoClient.connect(url, function(err, db) { |
Be sure to visit https://demonight.herokuapp.com to log in so you can be a part of project ratings
Install the CORS package
npm i cors --save
In your server.js:
const cors = require('cors')assert so you don't have to type chai.assert each time.done()s correctly in your test. Nice work picking up on the asynchronicity.Pre-refactor, this is a really great start. I love that you took documentation seriously, in your Readme, and production code. I also appreciate you taking on d3, and being willing to share what you've learned with the class. As someone with a history of building overly complicated visualizations, I can't vouch for D3 as the best tool for everything, but it is quite flexible. I hope you get more opportuni