Giter Club home page Giter Club logo

lcl-paste's Introduction

lcl-paste

Simple Paste [Bin] Manager App

App Screenshot

Features

  • Automatic Editor syntax highlighting
  • Paste expiration feature
  • Paste embedding
  • Filename drag import (drag a file to the editor and try)
  • User management (Auth0)
  • Integration with other web apps (Carbon)
  • API (working but may have breaking changes)

Planned:

  • Multi-file support
  • ...more

Hosting

Deploy your own

Deploy with Vercel

  1. Click the Deploy button above to clone the project and automatically host your website in Vercel
  2. Clone your project fork to your computer
  3. Make sure to fill your .env.local to be similar to the template (.env.local.template)
  4. Ensure FAUNADB_SECRET_KEY is filled with your Fauna Database Admin/Server Key
  5. Run the following in your terminal. (NOTE: Errors are not fully handled by the setup script.)
    yarn setup:db
    • This will create the required collections, indexes and roles

Development

Run the development server.

$ yarn dev

TODO:

  • Make expirations work
  • paste embedding
  • Improve paste deletion
  • Add auto setup for automatic fork -> deploy
  • Complete api endpoints
  • CLEANUP & REFACTOR CODES
  • ...more

Environment Variables

# A long secret value used to encrypt the session cookie
AUTH0_SECRET=

# The base url of your application
AUTH0_BASE_URL=

# The url of your Auth0 tenant domain
AUTH0_ISSUER_BASE_URL=

# Your Auth0 application's Client ID
AUTH0_CLIENT_ID=

# Your Auth0 application's Client Secret
AUTH0_CLIENT_SECRET=

# FaunaDB Secret
FAUNADB_SECRET_KEY=

# FaunaDB LCL-PASTE Public Key (generate another one beside `FaunaDB Secret` one)
FAUNADB_LCLPASTE_PUBLIC_KEY=

# Your website / app url (USE: http://localhost:3000 if in development)
NEXT_PUBLIC_APP_URL=

Stack

  • NextJS
  • Tailwind
  • FaunaDB
  • Auth0 (NextJS SDK)

© TheBoringDude | 2021

lcl-paste's People

Contributors

renovate-bot avatar tbdsux avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.