Keg: An open source URL shortener.
- Install CouchDB
$ sudo apt-get install couchdb
The default port CouchDB uses is 5984 hence you can ping it on http://localhost:5984/ and access the Futon dashboard on http://localhost:5984/_utils/
- Install package dependencies for the server
$ npm install
- Create environment variables file
A file named .env is required before running the server.
Sample .env file:
NODE_ENV=development
SERVER_URL=http://localhost:3000/
SERVER_PORT=3000
COUCHDB_URL=http://user:password@localhost:5984
COUCHDB_NAME=keg_db
The .env file should be placed under Keg's top directory.
$ cd views
- Install package dependencies for the front-end
$ bower install
$ npm install
- Build the front-end views
$ grunt
$ node app.js
Keg is now running on http://localhost:3000
The keg and beer icons are freely available here, under the Creative Commons (Attribution 3.0) license.