Giter Site home page Giter Site logo

arounditp's Introduction

AroundITP

AroundITP is a web resource for students at NYU ITP.


Live site: http://arounditp.herokuapp.com/

Dependencies

package.json:

{
"name": "express_w_mongodb",
"version": "0.0.1",
"engines": {
    "node": "0.6.10",
    "npm": "1.1.1"
},
"dependencies": {
    "express": "2.5.6",
    "ejs": "latest",
    "mongoose": "2.5.6",
    "request": "2.9.153",
    "twit": "0.1.3",
    "yelp":	"0.1.1"
	}
}

Be sure to install the Node modules above via Terminal, e.g.:

npm install twit

The Twit module requires Twitter API keys, and the Yelp module requires Yelp API keys. Sign up as a developer on those sites for access to those features. Include keys in your .env file. Your .env file should be included in your .gitignore file.

Heroku add-ons: MONGOLAB

Routes

  • GET '/' - main route, links to other major routes

  • GET '/discuss' - forum page with thread list

  • GET '/entry/:urlslug' - retrieves a thread by its urlslug

  • GET '/entryById/:postId' - retrieves a thread by its unique id

  • POST '/comment' - posts a comment to a thread

  • GET '/new-entry' - form to create a new thread

  • POST '/new-entry' - posts a new thread to site and db

  • GET '/recent' - lists recent threads

  • GET '/update/:postId' - form to update a given thread

  • POST '/update' - posts update to a thread

  • GET '/data/allposts' - returns data in json format

  • GET '/jsontest' - test of remote json data

  • GET '/itptweets' - returns most recent tweets about ITP

  • GET '/localtweets' - returns most recent tweets in the vicinity of ITP

  • GET '/food' - returns 20 closest Yelp results for food

  • GET '/drink' - returns 20 closest Yelp results for bars

Running the code

Start the Node server in Terminal (from within the directory):

foreman start

Otherwise, run after pushing to Heroku.

git add .
git commit -am "commit details"
git push heroku master

arounditp's People

Contributors

kimash avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.