Skip to content

afont1991/NodeApiTwitterTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node API and Server

My basic Node Server for use In projects

Running

  • Run 'mongod' (make sure you have mongoDB installed!)
  • npm install
  • Run 'coffee index.coffee' (You made need to install coffee script "npm install -g coffee-script")

Using the API

Keep in mind the search currently only looks at topic names!

You can send a simple json body like below to save a new topic:

{ "events": null, "name": "Sweet Dreams", "isPromoted": null, "query": "%22Sweet%20Dreams%22", "url": "http://twitter.com/search/?q=%22Sweet%20Dreams%22" }

Every field except the name field is optional...

  • Deleting Topics: DELETE to http://localhost:10002/birdie/rest/topics

    You can pass a query in the body that looks like {"query": "randomWordsAreCool"} which will be used to search the DB

    If no query is sent then all topics will be removed from the DB

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published