{"id":23665907,"url":"https://github.com/pooulad/blogo","last_synced_at":"2026-03-14T06:02:48.469Z","repository":{"id":269991585,"uuid":"908726919","full_name":"pooulad/blogo","owner":"pooulad","description":"📃Blog api written with golang","archived":false,"fork":false,"pushed_at":"2024-12-27T17:00:36.000Z","size":48,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T17:37:52.739Z","etag":null,"topics":["api","blog","blog-system","blogapi","blogo","blogsystem","golang","postgresql","webapi"],"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/pooulad.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-12-26T19:58:04.000Z","updated_at":"2024-12-27T17:04:15.000Z","dependencies_parsed_at":"2024-12-27T17:48:08.256Z","dependency_job_id":null,"html_url":"https://github.com/pooulad/blogo","commit_stats":null,"previous_names":["pooulad/blogo"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooulad%2Fblogo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooulad%2Fblogo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooulad%2Fblogo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooulad%2Fblogo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pooulad","download_url":"https://codeload.github.com/pooulad/blogo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231705292,"owners_count":18413986,"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":["api","blog","blog-system","blogapi","blogo","blogsystem","golang","postgresql","webapi"],"created_at":"2024-12-29T06:19:39.823Z","updated_at":"2026-03-14T06:02:48.424Z","avatar_url":"https://github.com/pooulad.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blogo📃\nComplete blog web api written with golang/gin web server and postgres database\n\n## Technology list in this project\n\n - JWT token\n - Godotenv\n - Postgres\n - GORM\n - Docker\n - Swagger\n - Gin\n\n\n## How to run\n\n### 🏳️First:\n\n```bash\ngit clone https://github.com/pooulad/blogo\ncd ./blogo\n```\n\n### ⚠️Dont forget to create .env file with required ```JWT_SECRET_TOKEN``` with jwt secret token value(you can generate from internet)\n\n### 🐳Run with Docker:\n\n1-Simple way with .sh file:\n\n```bash\n./run.sh\n```\n\n2-Run docker compose manually\n```bash\ndocker compose up --build -d\n```\n\n### 🍉Run manaully:\n1-In root of source you should run your go project with your db config in ./config/config.json or .env file\n```bash\ngo run ./cmd/blogo --cfg ./config/config.json\n```\n\n2-Or you can add all flags one by one like this sample:\n```bash\ngo run ./cmd/blogo --db_name=\"test\" --db_port=5432 ...\n```\n\n#### All flags\n\n| Flag name   | Description                  |\n| ----------- | ---------------------------- |\n| env         | env file address             |\n| app_url     | application url              |\n| port        | application port             |\n| db_port     | database port                |\n| db_name     | database name                |\n| db_host     | database host                |\n| db_username | database username            |\n| db_password | database password            |\n| db_sslmode  | database sslmode(true/false) |\n| cfg         | confige file                 |\n\n#### Sample config json file\n\n```json\n{\n    \"app_url\": \"0.0.0.0\",\n    \"port\": \"8000\",\n    \"environment\": \"development\",\n    \"db\": {\n      \"postgresql\": {\n        \"port\": \"5432\",\n        \"host\": \"postgres\",\n        \"dbname\": \"test_blogo\",\n        \"username\": \"postgres\",\n        \"password\": \"postgres\",\n        \"sslmode\": \"disable\"\n      }\n    }\n  }\n  \n```\n\n#### All endpoints\n\nyou can see all of them in ./docs/insomnia directory with .json or .har or .yaml extention\n```bash\ncd ./docs/insomnia\n``` \n\n#### TODO Checklist\n\nThis section tracks the progress of implemented features in blogo.\n\n- [x] Dockerize\n- [x] Add swagger\n- [x] Releaser\n- [ ] Validation for post methods\n- [ ] Testing\n\n## 🛡️ License\n\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpooulad%2Fblogo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpooulad%2Fblogo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpooulad%2Fblogo/lists"}