First code in nodejs

first code, not yet commented, of a server retrieving ison file from
data.rio rest server.
it also has a beginning of a data structure for the future database
nova url que retorna direção dos ônibus

troca da url em que o arquivo json retornado (de
dadosabertos.rio.rj.gov.br) contem um campo chamado DIRECAO.
added comments and minor code maintainability

code is, so far, commented. explaining (and teaching node.js)
everything anyone should know when reading it 10 year in the future.
adding comment related to old url

adding explanation about the old url that we used to make requests at.
requests sent in every 15 seconds

now this code sends the request over and over again in a 15 seconds
interval.
more comments and key in data[] not using "/"

added more comments to this code.
the key creation for our data[] structure, now does’t put a slash (“/“)
before the bus line. I opted to only use the bus line as key because I
don’t know if we will always use the slash in future codes.
added "things to do" in the top of the file

added, at the top of the file, a comment that tracks things that need
to be done in this code.
updated "things to do
updated comments
added gitignore file

ignoring .DS_Store files created by mac osx
False commit to write about previous commit

Now, our code writes a file, in JSON format, with the data that we
would like to store.
to make the JSON stringily function work, the object passes to be
turned into JSON can’t have null fields in his structure. This is what
happens when you set properties, in an array object, not using the
array index to access it. What I did was to change the object creation
from “var obj = []“ to “var “obj = {}”. Now it generates pairs
“<propertyName> : propertyValue>” and this can be seen in the JSON file.
Added a configuration file

reading request parameters from a file, makes us change the request
without stop to the execution.
I have also changed the name of one property, just to keep the same
name I have been using inside the code
file where all data is store

this file is written in a single line, but we can make it look
prettier, with new lines and paragraph. It’s not necessary but if we
want to read the file with our own eyes, it helps us a lot when it
looks pretty. So i have set the code to write everything in a single
line, because I believe it writes faster and will make the read run
faster too.
Option is now set before every execution

because I am reading the request parameters from a file, the request
option object is created and set right before the response is sent.
Implemented the configuration file read

this will make our code get information form a json file before build
the request header
change in the github read me file

Code execution instruction updated to fit this node.js code
This file changes all the time

you don’t have to care about it.
correction on comment
fixing the readme file
fixing readme.md file again