Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/max-programming/easypastes
Use Easy Pastes to create, store, share code snippets by simply pasting them with syntax highlight.
https://github.com/max-programming/easypastes
auth clerk fullstack hacktoberfest nextjs react supabase
Last synced: 9 days ago
JSON representation
Use Easy Pastes to create, store, share code snippets by simply pasting them with syntax highlight.
- Host: GitHub
- URL: https://github.com/max-programming/easypastes
- Owner: max-programming
- License: mit
- Created: 2021-07-22T08:25:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T22:46:05.000Z (6 months ago)
- Last Synced: 2024-05-11T22:45:05.411Z (6 months ago)
- Topics: auth, clerk, fullstack, hacktoberfest, nextjs, react, supabase
- Language: TypeScript
- Homepage: https://easypastes.tk
- Size: 3.06 MB
- Stars: 38
- Watchers: 1
- Forks: 9
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
An intuitive, amazing, feature rich and easy to use Code paste service!
#### β¨ The live [Instance](https://easypastes.tk)
#### Here's a sneak peak to the app - [Link to the GIF](https://cdn.hashnode.com/res/hashnode/image/upload/v1627542797932/0TNW01u9N.gif)
## Tech Stack
- [Next.js](https://nextjs.org/)
- [Chakra UI](http://chakra-ui.com/)
- [Supabase](http://supabase.io/)
- [Clerk](https://clerk.dev)### π οΈ 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](https://supabase.io).
- Make a new Clerk App and get the info for it from [here](https://clerk.dev).## 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.
- Check the [official docs](https://supabase.io/docs/guides/with-nextjs) for help with setup.
- Configure Clerk for Authentication services.
- Check this [article](https://medium.com/geekculture/mastering-clerk-authentication-with-the-next-js-standard-setup-c66b97bac724) 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.
```sh
yarn
# OR
npm install
```Then, Finally, Start the server!
```sh
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](https://www.conventionalcommits.org/en/v1.0.0-beta.3/) 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](https://github.com/max-programming/easypastes/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](https://choosealicense.com/licenses/mit/)
## Authors
- [Sunrit Jana](https://github.com/janaSunrise)
- [Usman](https://github.com/max-programming)Made by the EasyPastes team with β₯