{"id":14987679,"url":"https://github.com/victorsteven/forum-app-go-backend","last_synced_at":"2026-03-03T11:39:08.096Z","repository":{"id":76094567,"uuid":"208653543","full_name":"victorsteven/Forum-App-Go-Backend","owner":"victorsteven","description":"Forum Backend API built with Golang, GIn Framework, GORM, PostgreSQL/MySQL","archived":false,"fork":false,"pushed_at":"2023-02-25T04:00:05.000Z","size":368048,"stargazers_count":208,"open_issues_count":7,"forks_count":58,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-31T11:21:08.961Z","etag":null,"topics":["gin","gin-gonic","go","golang","gorm","gorm-orm","mysql","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/victorsteven.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-09-15T20:30:38.000Z","updated_at":"2025-02-26T19:16:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"2dd303c7-bc9c-4980-bac6-15d365b9da55","html_url":"https://github.com/victorsteven/Forum-App-Go-Backend","commit_stats":{"total_commits":171,"total_committers":2,"mean_commits":85.5,"dds":0.005847953216374324,"last_synced_commit":"b3ca3259d22e183b523d6f08ae8cd7c0b7cee597"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorsteven%2FForum-App-Go-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorsteven%2FForum-App-Go-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorsteven%2FForum-App-Go-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorsteven%2FForum-App-Go-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorsteven","download_url":"https://codeload.github.com/victorsteven/Forum-App-Go-Backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252902678,"owners_count":21822276,"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":["gin","gin-gonic","go","golang","gorm","gorm-orm","mysql","postgresql"],"created_at":"2024-09-24T14:15:09.754Z","updated_at":"2026-03-03T11:39:08.039Z","avatar_url":"https://github.com/victorsteven.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Forum-App-Go-Backend  [![CircleCI](https://circleci.com/gh/victorsteven/Forum-App-Go-Backend.svg?style=svg)](https://circleci.com/gh/victorsteven/Forum-App-Go-Backend)\n \n\n\u003e This is a forum API built with Golang\n\n## Getting Started\n\n\u003e [[Technologies](#technologies-used) \u0026middot;  \u0026middot; [Installations](#installations) \u0026middot; \u0026middot; [Tests](#tests) \u0026middot; [Author](#author)\n\n\n## Technologies Used\n\n[golang]: (https://golang.org)\n\n- [Golang](https://golang.org).\n- [Gin Framework](https://github.com/gin-gonic/gin).\n- [GORM](http://gorm.io).\n- [postgreSQL](https://www.postgresql.org).\n- [Docker](https://www.docker.com/).\n- [Digital Ocean](https://www.digitalocean.com).\n- [AWS](https://aws.amazon.com).\n- [Circleci](https://circleci.com).\n\n\n\n## Installations\n\n### Clone\n\n- Clone this project to your local machine `https://github.com/victorsteven/Forum-App-Go-Backend.git`\n\n\n### Setup\n\n  #### Without Docker\n\n  \u003e Ensure that you have your .env set up and have created your database\n  - For local, set the DB_HOST in the .env file as follows:\n    ```shell\n      $ DB_HOST=127.0.0.1\n    ```           \n  \u003e In the root directory, run the command\n  ```shell\n  $ go run main.go\n  ```\n  - Use `http://localhost:8080` as base url for endpoints\n\n\n #### Using Docker\n\n  Docker is the default setting for this project\n\n  - Set the DB_HOST as follows in the .env file\n    ```shell\n      $ DB_HOST=forum-postgres \n    ```    \n  ##### For Local Development:\n  - Create a Dockerfile file in the root directory\n  - Copy the content of the file: example.Dockerfile.dev (for only local development)\n  - Create a docker-compose.yml file in the root directory\n  - Copy the content of the file: example.docker-compose.dev.yml (for only local development)\n\n  ##### For Testing:\n  - Create a Dockerfile.test file in the root directory\n  - Copy the content of the file: example.Dockerfile.test (for only test)\n  - Create a docker-compose.test.yml file in the root directory\n  - Copy the content of the file: example.docker-compose.test.yml (for only test)\n  \n  ##### For Production (This should be done in the server (AWS, DigitalOcean, etc)):\n  - Create a Dockerfile file in the root directory\n  - Copy the content of the file: example.Dockerfile.prod (for production only)\n  - Create a docker-compose.yml file in the root directory\n  - Copy the content of the file: example.docker-compose.prod.yml (for production only)\n\n  \n  In the root directory, run the command:\n  ```shell\n  $ docker-compose up --build\n  ```\n  - Use `http://localhost:8888` as base url for endpoints\n\n\n\n## Tests\n\n  ### Without Docker\n\n  - Run test for all endpoints\n    \u003e Navigate to the tests directory and run\n    ```shell\n    $ go test -v ./...\n    ```\n\n  ### Using Docker\n\n- Run test for all endpoints\n  \u003e If you have set up the Dockerfile.test and the docker-compose.test.yml files above, from the root directory of the app.\n  ```shell\n  $ docker-compose -f docker-compose.test.yml up --build \n  ```\n\n\n## Author\n\n- Steven Victor\n- medium: medium.com/@victorsteven  \n- twitter: twitter.com/stevensunflash  \n- linkedin: linkedin.com/in/stevenchikodi","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorsteven%2Fforum-app-go-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorsteven%2Fforum-app-go-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorsteven%2Fforum-app-go-backend/lists"}