{"id":20314889,"url":"https://github.com/sebastianmahecha/teravision","last_synced_at":"2026-05-11T07:28:08.028Z","repository":{"id":250255450,"uuid":"222812112","full_name":"SebastianMahecha/teravision","owner":"SebastianMahecha","description":"This project is a practice API. I'm using Go + Gin + Gorm and PostgreSQL","archived":false,"fork":false,"pushed_at":"2019-11-20T07:49:35.000Z","size":8072,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T08:45:48.020Z","etag":null,"topics":["gin","golang","gorm","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/SebastianMahecha.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-11-19T23:49:45.000Z","updated_at":"2024-10-26T19:56:10.000Z","dependencies_parsed_at":"2024-07-26T05:53:45.210Z","dependency_job_id":null,"html_url":"https://github.com/SebastianMahecha/teravision","commit_stats":null,"previous_names":["sebastianmahecha/teravision"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SebastianMahecha/teravision","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianMahecha%2Fteravision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianMahecha%2Fteravision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianMahecha%2Fteravision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianMahecha%2Fteravision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebastianMahecha","download_url":"https://codeload.github.com/SebastianMahecha/teravision/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianMahecha%2Fteravision/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274135163,"owners_count":25228201,"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-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["gin","golang","gorm","postgresql"],"created_at":"2024-11-14T18:17:06.148Z","updated_at":"2026-05-11T07:28:02.999Z","avatar_url":"https://github.com/SebastianMahecha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TeraVision Test\n\n## Steps to install the project\n\n1. Install go and configure GOPATH and GOROOT environment variables \\\n    `https://golang.org/doc/install` \n2. Create folder \\\n    `{{project_name}}/src/github.com` \n3. Clone repository \\\n    If you have ssh key in your PC `git@github.com:SebastianMahecha/teravision.git` \\\n    Else `https://github.com/SebastianMahecha/teravision.git` \n4. If you do not have a database in the cloud for testing, then create a postgres database in your local. Skip the first two commands if you already have postgres installed. \\\n    `sudo apt-get update` \\\n    `sudo apt-get install postgresql postgresql-contrib` v\n    `sudo -u postgres psql` \\\n    `CREATE USER teravision_user WITH PASSWORD 'fDG6k6nAb#YG';` \\\n    `CREATE DATABASE teravision_db;` \\\n    `GRANT ALL PRIVILEGES ON DATABASE \"teravision_db\" to teravision_user;` \\\n    `\\q` \n5. Configure your local or remote database access in file: \\\n    `./config/config.env` \n\n### Normal way to run the project\n\n1. Install dependencies \\\n    `go get -u -v github.com/gin-gonic/gin` \\\n    `go get -u -v github.com/jinzhu/gorm` \\\n    `go get -u -v github.com/jinzhu/gorm/dialects/postgres` \\\n    `go get -u -v github.com/lib/pq` \n2. Run project \\\n    `go run application.go` \n\n### Run the project with Docker\n\n1. Update docker-compose \\\n    `docker-compose up` \n2. Run project \\\n    `docker-compose run teravision` \n\n### If the service is already running, then try the api.\n\n1. Import the following collection into PostMan: \\\n    `teravision.postman_collection.json` \n2. Parameterize the {{domain}} variable of your collection. Example: \\\n    Request \\\n    `http://127.0.0.1:3000/api/v1/user` \\\n    `{\n        \"name\": \"Juan Sebastian Mahecha Macias\",\n        \"fiscal_number\": \"10706541587\",\n        \"birthdate\": \"1996-12-29\"\n    }` \n    Error Response - Http Status 400 \\\n    `{\n        \"data\": {\n            \"error_code\": \"general_error\",\n            \"message\": \"User not saved successfully. Error: User already exists.\"\n        },\n        \"status\": \"error\"\n    }` \\\n    Success Response - Http Status 200 \\\n    `{\n        \"data\": {\n            \"message\": \"User saved successfully\"\n        },\n        \"status\": \"success\"\n    }`\n\n3. Modify the json of the body and send several requests \n\n### Send me your feedback, please","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianmahecha%2Fteravision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianmahecha%2Fteravision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianmahecha%2Fteravision/lists"}