Skip to content
A Node, Express, and MongoDB URL Shortener
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
models
node_modules
static
README.md
app.js
config.js
dbsetup.txt
favicon.ico
hashids.js
index.html
package-lock.json
package.json

README.md

URL Shortener - abbrev.io

A Node, Express, and MongoDB URL Shortener which uses Hashids to generate unique URLs

To run locally:

Run MongoDB, then run commands:
use url_shortener
db.counters.insert({ _id: 'url_count', seq: 1 })

Set config.db.host and config.db.name in config.js to match local environment

npm local

To run in production:

Setup MongoDB and get MongoDB URI
Set Node environment variable MONGOLAB_URI to the MongoDB URI

npm start
You can’t perform that action at this time.