Skip to content

sboichon/shrtnr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shrtnr

A small url shortener to get my hands on the MEAN stack

Getting Started

System Requirements: Node, Bower. Required dependencies are installed during the steps below.

  1. Clone this repo: git clone https://github.com/sboichon/shrtnr
  2. Install node depencies: npm install
  3. Install angular dependencies: bower install
  4. Run the tests : npm test
  5. Run the server: node server.js

Methods

  • Follow a shortlink: GET /go/{id}
  • Get info on all registered shortlinks: GET /links
  • Get info on a particular shortlink: GET /links/{id}
    • returns a JSON shortlink object, with _id, url and created_at (timestamp)
  • Create a shortlink: POST /links
    • Send {"url": "http://mydomain.com"} as JSON; returns the JSON shortlink object it just created.
  • Delete a shortlink: DELETE /links/{id}

About

A small url shortener to get my hands on the MEAN stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published