Cocopasty is a small and simply copy-and-paste solution for your code. Paste your code in your browser and copy it on another device!
Client
Server
Database
DevOps
- So simple, your pet rock could use it
- 150+ available languages
- Autodetect languages with highlight.js
- Completely dockerized
You need to have Go, Docker, Docker Compose and NPM installed to run/develop this project.
Explanations for the different environment variables. Examples can be found in the docker-compose.yml files.
VUE_APP_BACKEND_PORT
is the port your cocopasty-backend container runs.VUE_APP_BACKEND_HOST
is the host of your cocopasty-backend container.
LOG_LEVEL
the log level you wish to use. Default is "info". All log levels can be found here.REDIS_HOST
is the host + port of your Redis DB.REDIS_PASSWORD
if your Redis instance uses password authentication, set here your password. If left empty, authentication without password will be tried.
Clone the project
git clone https://https://github.com/MasterEvarior/cocopasty.git
Go to the project directory
cd cocopasty
Run with Docker Compose
docker-compose up
To deploy this project copy the contents of the docker-compose-deploy.yml file and paste it into a new file.
wget https://raw.githubusercontent.com/MasterEvarior/cocopasty/main/docker-compose-deploy.yml
Change the ports, volumes, etc. to your liking.
vi docker-compose-deploy.yml
Rename the file and run it with Docker Compose.
mv docker-compose-deploy.yml docker-compose.yml
docker-compose up
Feel free to suggest features through a GitHub issue, in addition to the ones listed below:
- Backend tests
- Frontend tests
- Installation instructions for Unraid
- CI/CD with GitHub-Actions
- Automatically update Changelog for dependency updates
- Automatic releases
- Run tests
Contributions are always welcome!
-
Is there an official method to install WITHOUT Docker?
- No
-
Is there any sort of build in authentication?
- No, though you could use something like Authelia
-
Can I use this to copy my API-Keys etc. from one device to another?
- You can but I'd strongly advise against it
-
Which languages are available for auto-highligting?
- A complete list can be found here
-
Can I use this with my already existing Redis instance?
- Sure, you just have to adjust the compose file to your liking
-
Does the default compose file configure Redis to be persistent?
- No
Distributed under the MIT License. See the LICENSE file for more information.
Email: [email protected]
Project Link: https://github.com/MasterEvarior/cocopasty
Cool projects which make Cocopasty possible