ovi-salman / 309-project-skeleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set up the code

  1. Install Node.js and MongoDB on your computer

  2. Download this code, and from command prompt run:

    npm install

    bower install

  3. To run the code, run:

    node server.js

  4. In the browser open http://localhost:3000/, and you should see the index page

Exposed APIs:

GET /api/articles (returns list of articles)

POST /api/articles (create new article)

GET /api/articles/:articleId (returns an article with matching id)

DELETE /api/articles/:articleId (deletes the matching article)

GET /api/articles/edit/:articleId (returns an article with matching id)

PUT /api/articles/edit/:articleId (updates the matching article)

About


Languages

Language:JavaScript 79.5%Language:HTML 20.5%