Giter VIP home page Giter VIP logo

easypastes's Introduction

Easy Pastes

An intuitive, amazing, feature rich and easy to use Code paste service!

License

✨ The live Instance

Here's a sneak peak to the app - Link to the GIF

Tech Stack

πŸ› οΈ Development or Contributing

If you're interested in growing this project further, Add a .env.local file based on .env.example file. And add the following things:

  • Get your supabase instance info from here.
  • Make a new Clerk App and get the info for it from here.

Installation and Running

Here is a quick and easy guide for you to run EasyPastes for development, or self hosting it for yourself.

🐳 With Docker

Docker is an easy way of containerizing and delivering your applications quickly and easily, in a convenient way. It's really simple to get started with this, with docker handling all the installation and other tasks.

Configure the environmental variables by renaming the .env.example file to .env.local with the respective values. Once you have your environmental variables and config, follow the guide below.

Docker mini guide:

  • To start development environment: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
  • To start production deployment: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up
  • To stop the container: docker-compose down
  • To rebuild the container: docker-compose --build

Both development and production almost run same thing, With some different tweaks and changes. Both of run on 127.0.0.1:3000. For displaying it in production, Use Nginx or Apache to proxy it.

Without Docker

This is another way to host, but without docker. You can follow this if docker doesn't work well on your system, or it doesn't support it. Containers are resource intensive, and your PC might not be able to do it, this is the perfect method to get started with the self-hosting.

Here are the steps to configure and run the app:

  • Configure Supabase for Database.
  • Configure Clerk for Authentication services.
    • Check this article out for configuration of clerk.
  • Configuring Environmental variables based on Supabase and Clerk setup.
  • Finally run the app!

Environment Variables

To run this project, you will need to properly configure environmental variables. Configure the environmental variables by renaming the .env.example file to .env.local with the respective values.

Run the app!

Install the dependencies first.

yarn
# OR
npm install

Then, Finally, Start the server!

yarn dev
# OR
npm run dev

🀝 Contributing

Contributions, issues and feature requests are welcome. After cloning & setting up project locally, you can just submit a PR to this repo and it will be deployed once it's accepted.

⚠️ It’s good to have descriptive commit messages, or PR titles so that other contributors can understand about your commit or the PR Created. Read conventional commits before making the commit message.

πŸ’¬ Get in touch

If you have various suggestions, questions or want to discuss things with our community, Have a look at Github discussions or Reach us out at Twitter!

πŸ™Œ Show your support

We love and appreciate people's support in growing and improving. Be sure to leave a ⭐️ if you like the project and also be sure to contribute, if you're interested!

License

MIT

Authors

Made by the EasyPastes team with β™₯

easypastes's People

Contributors

dependabot[bot] avatar janasunrise avatar max-programming avatar piyushsuthar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

easypastes's Issues

Some Characters are not displayed as it was when pasted

Describe the bug

Some characters like the >= and the != are displayed in some other format.
When I share these pastes to other people, they find it difficult to decipher these characters.

image

image

To Reproduce

  1. paste the code below
  2. submit in easypastes

 while(start < end){
            if(str[start++] != str[end--]){
                return false;
            }
        }
        return true;
    }

    void backtrack(vector<string> &curr, const int start){
        if(start >= str.length()){
            ans.push_back(curr);
        }

Expected behavior

The != character should be displayed just like the != character.

Screenshots
If applicable, add screenshots to help explain your problem.

image

https://www.easypastes.tk/pastes/2z4pV5

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari] any
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Easypaste not working

Description

Hi dear maintainer,
Easy paste is currently down and unfortunately some of us have used it recently for important pastes that would be referenced
in production-critical issues and bugs.
Thanks

Steps to reproduce

Try opening https://www.easypastes.tk

Critical app error

Easypastes crush on loading

Steps to reproduce

Steps to reproduce the behavior:

  1. Visit https://www.easypastes.tk

Screenshots

Site image
Console image

Platform info

Desktop (please complete the following information):

  • OS: MacOS 12.4
  • Browser Chrome
  • Version 103.0.5060.134 (Official Build) (x86_64)

[FEATURE REQUEST] Highlight Lines with Permalink

Is your feature request related to a problem? Please describe.

I have been using easypastes for sharing code with my friends.

However, sometimes I do not want them to read the whole code but not read just the highlighted lines.

Describe the solution you'd like

It would be helpful if you could add a feature like highlight lines and I can just share the link with highlighted lines.
Something just like GitHub does.

Describe alternatives you've considered

Currently it is not very nice to tell them to see/go the current line.

Additional context

It can be something like this:
image

Add Scala syntax highlight

Is your feature request related to a problem? Please describe.

Yes, since reading code in this language becomes difficult 😒

Describe the solution you would like

The library used in this project includes Scala, it seems to me that there will not be many problems with this.
Scala in PrismJS

P.s. This is a very cool project 😊

Current visibility not showing on edit page

Describe the bug

The visibility of a paste is not correct for the edit page, on mobile devices.

Expected behavior

The correct visibility status for a paste should be shown.

Screenshots

The paste is displayed as public in screenshot, but it is actually unlisted when creating.

Screenshot_20210728-235136.png

Additional context

This bug is specific to only mobile devices.

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.