{"id":22465969,"url":"https://github.com/benitolopez/ssnipp","last_synced_at":"2025-03-27T14:51:54.898Z","repository":{"id":253401858,"uuid":"843388189","full_name":"benitolopez/ssnipp","owner":"benitolopez","description":"Minimalist and private code snippet sharer","archived":false,"fork":false,"pushed_at":"2024-09-05T12:52:52.000Z","size":190,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T19:12:04.889Z","etag":null,"topics":["code","snippets"],"latest_commit_sha":null,"homepage":"https://ssnipp.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benitolopez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-16T12:05:05.000Z","updated_at":"2024-09-05T12:52:55.000Z","dependencies_parsed_at":"2024-08-29T07:01:25.821Z","dependency_job_id":null,"html_url":"https://github.com/benitolopez/ssnipp","commit_stats":null,"previous_names":["benitolopez/ssnipp"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benitolopez%2Fssnipp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benitolopez%2Fssnipp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benitolopez%2Fssnipp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benitolopez%2Fssnipp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benitolopez","download_url":"https://codeload.github.com/benitolopez/ssnipp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245867240,"owners_count":20685595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code","snippets"],"created_at":"2024-12-06T10:09:43.338Z","updated_at":"2025-03-27T14:51:54.874Z","avatar_url":"https://github.com/benitolopez.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snnipp\n\nThis project is a minimal, private code snippet sharing application built with Go, MySQL, and Tailwind. It's designed to be a personal tool for managing and sharing code snippets privately.\n\nHere you can view it in action: [https://ssnipp.com](https://ssnipp.com/view/1)\n\n## Features\n\n- **Built with Go**: The application is powered by a Go web server.\n- **MySQL Database**: Snippets are stored in a MySQL database.\n- **Tailwind**: The frontend is styled using Tailwind.\n\n## Requirements\n\n- **.env File**: You need to create a `.env` file in the root directory to set up some default configurations.\n\n## Setup\n\n1. **Clone the repository**\n\n   ```bash\n   git clone https://github.com/benitolopez/ssnipp.git\n   cd ssnipp\n   ```\n\n2. **Install dependencies**\n\n   ```bash\n   npm install\n   ```\n\n3. **Create the `.env` file**\n\n   Create a `.env` file in the root directory of the project with the following content:\n\n   ```env\n   PORT=:4000\n   DEBUG=false\n   ALLOW_SIGNUP=true\n   DB_USERNAME=your_db_username\n   DB_PASSWORD=your_db_password\n   DB_DATABASE=your_db_database\n   DB_TEST_USERNAME=your_db_test_username\n   DB_TEST_PASSWORD=your_db_test_password\n   DB_TEST_DATABASE=your_db_test_database\n   ```\n\n   Replace `your_db_username`, `your_db_password`, and `your_db_name` (and test versions) with your actual MySQL credentials.\n\n4. **Run the application**\n\n   ```bash\n   go run ./cmd/web\n   ```\n\n   or:\n\n   ```bash\n   npm run dev\n   ```\n\n   The application will start a web server, and you can access it via `http://localhost:4000`.\n\n5. **Deploy the application**\n\n   ```bash\n   make build/web\n   ```\n\n## Note on Contributions\n\nThis project is maintained as my personal tool for private code snippet sharing. As such, I do not accept pull requests. However, feel free to fork the project and customize it for your own use.\n\n## Acknowledgment\n\nThis project was inspired by the book [Let’s Go](https://lets-go.alexedwards.net/) by Alex Edwards. There are a few changes made in this implementation, but I totally recommend the book for anyone interested in learning Go and building web applications.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenitolopez%2Fssnipp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenitolopez%2Fssnipp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenitolopez%2Fssnipp/lists"}