Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.23 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.23 KB

lite.fyi

Lite.fyi is a very micro link shortener, with all the clutter taken away. It does what it says it does (shortens links, duh).
This service is ready to be deployed out of the box with Netlify, and is designed to work with Netlify (although it wouldn't be much work porting it elsewhere). If you don't have Netlify insalled, check it out here

Deploy

dev

  1. clone
git clone [email protected]:jdleo/lite.git
  1. install dependencies
yarn
  1. add your firebase service account key to a new .env file in root
FIREBASE_SERVICE_ACCOUNT=xxxxx

After you've made a new Firebase app, enabled Firestore, go to Settings > Service Accounts if you're unsure where to go.

  1. start dev server
netlify dev

prod (without deploy button)

  1. create new netlify app, and set a new environment variable for your site, for FIREBASE_SERVICE_ACCOUNT, where its equal to the JSON string of your Firebase Service Account key.
  2. deploy your site
netlify deploy --prod

test

yarn run test

build

yarn run build