Not using anymore. Moved to https://github.com/someshkar/dotco
Used to run at exun.co.
- Create a file called
.env
with the following parameters:
PORT=3000
SECRET=<secret for signing cookies>
NODE_ENV=<'development' or 'production'>
- Get the Google Cloud Credentials from Ananay, name the file as 'client_secret.json' and put it in the root directory of this project (in the same folder as package.json, app.js, etc.)
- Create a file called
.authorized
with the emails of those who are allowed to make shortlinks. Put each email in a new line. - Run
yarn
to install dependencies - Create a SQLite database with
sqlite3 db/<env>.sqlite3 < db/setup.sql
whereenv
is eitherdevelopment
orproduction
yarn start
to launch 🚀
Written by Kabir Goel and Ananay Arora.