https://github.com/anonrig/url-shortener
Url Shortener with MEAN stack
https://github.com/anonrig/url-shortener
Last synced: 3 months ago
JSON representation
Url Shortener with MEAN stack
- Host: GitHub
- URL: https://github.com/anonrig/url-shortener
- Owner: anonrig
- Created: 2015-03-18T22:40:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-21T21:58:14.000Z (over 11 years ago)
- Last Synced: 2025-01-26T17:12:20.345Z (over 1 year ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Url-Shortener
Aim is to develop a url shortener that every developer can use. It uses NodeJS as API, Redis as session storage, Mongo as database and Jade as templating engine.
### Rediraction mechanism
There are two different methods where you can redirect users to specific urls.
view.save(function(err) {
if (err) res.render('500');
res.render('view', { 'url': view.url });
/**
* Alternative solution to HTML5 Refresh.
*/
// res.redirect(view.url);
});
### Documentation
As part of Javascript, [jsdoc](http://usejsdoc.org/ "JS DOC") is used.
### TODO
- Admin panel
- Better UI for both index and error pages.
- Switch to token authentication instead of cookie based one.