All contributions are welcome and I will be extremely grateful if you make it. You can help gocatgo by contributing with code, new ideas, telling me better ways of doing X, anything! If you want to contribute with code, there are some things that still needs to be implemented (see #todo in the end).
To run locally, a simple database is required (I'm using PostgreSQL, but since it's managed by an ORM, I think MySQL will also work). This database is required because it's where all the user pastes are stored. It's not saved in the server disk like others programs do. After creating the database, some environment variables is needed to run the program:
export DBHOST=your.database.hostname
export DBUSER=your.database.username
export DBPASSWORD=your.database.password
export DBNAME=your.database.name
export DBPORT=5432
Then, you can run the code:
go run .
# or
go build -o api && ./api
- Fork the project.
- Make your changes locally.
- Commit and create a Pull Request. In the text, for now, just explain what you did and that's it.
- After you've created it, just wait a little, I will review it and merge it if it's everything is alright.
- Store images (with limit size)
- Change some options to get from environment variables
- Ability to create a paste with password, and be able to delete it if you have the password
- Improve return code and messages
- Is the sha256 a good way of verify the code?
- Probably in the future a retention period will be necessary