Skip to content

A good-looking, open-source, serverless pastebin platform.

License

Notifications You must be signed in to change notification settings

futurGH/sleekbin

Repository files navigation

sleekbin

A good-looking, open-source, serverless pastebin platform.

Will get around to properly documenting this at some point. Login system currently not working, I'll also get to that at some point.

Project setup

npm install

Environment Variables

  • Get a Google Fonts API key, set environment variable VUE_APP_GOOGLE_FONTS_API_KEY to it
  • Create a Firebase project with Cloud Storage and Firestore, set environment variable FIREBASE_STORAGE_BUCKET to the storage bucket ID
  • Create a service account for the Firebase project, set environment variable FIREBASE_CREDENTIALS to the entire service account key object
    • (I'm sorry about this, it was the easiest way for me to parse it into a JSON object without Firebase complaining)

DEPLOY TO VERCEL! Also swap out the instances of "Sleekbin" in the code if you want to. Not too difficult, it's in like 3 places.

Development

npm install vercel -g

Run locally with hot-reload

vercel dev

Compile and minify for production

npm run build

Deploy to Vercel

vercel --prod

Lint and fix files

npm run lint

About

A good-looking, open-source, serverless pastebin platform.

Resources

License

Stars

Watchers

Forks