{"id":29643407,"url":"https://github.com/ashraf-kabir/event-booking","last_synced_at":"2025-07-21T23:36:34.501Z","repository":{"id":297446896,"uuid":"993232170","full_name":"ashraf-kabir/event-booking","owner":"ashraf-kabir","description":"Event Booking API","archived":false,"fork":false,"pushed_at":"2025-06-20T18:58:06.000Z","size":9397,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T19:56:04.684Z","etag":null,"topics":["api","go","golang","rest-api"],"latest_commit_sha":null,"homepage":"","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/ashraf-kabir.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,"zenodo":null}},"created_at":"2025-05-30T12:45:35.000Z","updated_at":"2025-06-20T18:58:10.000Z","dependencies_parsed_at":"2025-06-05T14:43:46.940Z","dependency_job_id":null,"html_url":"https://github.com/ashraf-kabir/event-booking","commit_stats":null,"previous_names":["ashraf-kabir/event-booking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashraf-kabir/event-booking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashraf-kabir%2Fevent-booking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashraf-kabir%2Fevent-booking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashraf-kabir%2Fevent-booking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashraf-kabir%2Fevent-booking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashraf-kabir","download_url":"https://codeload.github.com/ashraf-kabir/event-booking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashraf-kabir%2Fevent-booking/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266403334,"owners_count":23923406,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","go","golang","rest-api"],"created_at":"2025-07-21T23:36:33.754Z","updated_at":"2025-07-21T23:36:34.490Z","avatar_url":"https://github.com/ashraf-kabir.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# event-booking\n\n### Install Dependencies:\n\n```bash\ngo get -u github.com/gin-gonic/gin\ngo get github.com/mattn/go -sqlite3\ngo get -u golang.org/x/crypto/bcrypt\ngo get -u github.com/golang-jwt/jwt/v5\ngo get github.com/gin-contrib/cors\ngo get github.com/joho/godotenv\ngo get -u github.com/go-sql-driver/mysql\n```\n\n### To serve the project\n\n```bash\ngo run .\n```\n\n### To build the project for development:\n\n```bash\ncd scripts\n./build.sh\n```\n\n### To serve the project in development mode:\n\n```bash\ncd scripts\n./serve.sh\n```\n\n### Build the project for production (Linux amd64):\n\n```bash\nGOOS=linux GOARCH=amd64 go build -o build/linux/event-booking\n```\n\n### Give execute permissions to the binary:\n\n```bash\ncd build/linux\nsudo chmod +x event-booking\n```\n\n### To install PM2 globally:\n\n```bash\nnpm install -g pm2\n```\n\n### Serve using the PM2 process manager:\n\n```bash\ncd /path/to/your/project\npm2 start build/linux/event-booking --name event-booking\n```\n\n### To stop the PM2 process:\n\n```bash\npm2 stop event-booking\n```\n\n### To save the PM2 process list for automatic restart:\n\n```bash\npm2 save\n```\n\n### To restart the PM2 process:\n\n```bash\npm2 restart event-booking\n```\n\n### To view PM2 logs:\n\n```bash\npm2 logs event-booking\n```\n\n### To delete PM2 process:\n\n```bash\npm2 delete event-booking\n```\n\n### To clean all PM2 logs:\n\n```bash\npm2 flush\n```\n\n### NGINX Configuration:\n\n```nginx\nserver {\n    listen 80;\n    server_name yourdomain.com;  # or public IP for testing\n\n    location / {\n        proxy_pass http://localhost:8080;\n        proxy_http_version 1.1;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection keep-alive;\n        proxy_set_header Host $host;\n        proxy_cache_bypass $http_upgrade;\n    }\n}\n```\n\n### Check \u0026 reload NGINX configuration:\n\n```bash\nsudo nginx -t \u0026\u0026 sudo systemctl reload nginx\n```\n\n### SSL Configuration with Let's Encrypt and Certbot:\n\n```bash\nsudo certbot --nginx -d yourdomain.com\n```\n\n### To renew SSL certificates:\n\n```bash\nsudo certbot renew --dry-run\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashraf-kabir%2Fevent-booking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashraf-kabir%2Fevent-booking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashraf-kabir%2Fevent-booking/lists"}