{"id":19904501,"url":"https://github.com/vskut/twigo","last_synced_at":"2025-03-01T07:25:19.583Z","repository":{"id":101379202,"uuid":"228710111","full_name":"VSKut/twigo","owner":"VSKut","description":"Repository for studying purposes","archived":false,"fork":false,"pushed_at":"2019-12-26T21:13:30.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-03T11:19:45.181Z","etag":null,"topics":["go","golang","grpc","grpc-go","jwt","postgres","protobuf","protobuf3","rest","rest-api","rest-client"],"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/VSKut.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":"2019-12-17T22:08:24.000Z","updated_at":"2024-06-19T10:26:43.770Z","dependencies_parsed_at":null,"dependency_job_id":"e92bfc52-ca04-421d-bf2f-20e9b208c987","html_url":"https://github.com/VSKut/twigo","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VSKut%2Ftwigo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VSKut%2Ftwigo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VSKut%2Ftwigo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VSKut%2Ftwigo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VSKut","download_url":"https://codeload.github.com/VSKut/twigo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241332106,"owners_count":19945517,"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":["go","golang","grpc","grpc-go","jwt","postgres","protobuf","protobuf3","rest","rest-api","rest-client"],"created_at":"2024-11-12T20:28:42.405Z","updated_at":"2025-03-01T07:25:19.552Z","avatar_url":"https://github.com/VSKut.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Go version](https://img.shields.io/github/go-mod/go-version/vskut/twigo)\n[![Build Status](https://travis-ci.org/vskut/twigo.svg)](https://travis-ci.org/vskut/twigo)\n[![Go Report Card](https://goreportcard.com/badge/github.com/vskut/twigo)](https://goreportcard.com/report/github.com/vskut/twigo)\n[![GolangCI Report card](https://golangci.com/badges/github.com/vskut/twigo.svg)](https://golangci.com/r/github.com/VSKut/twigo)\n[![codecov.io](https://codecov.io/github/vskut/twigo/branch/master/graph/badge.svg)](https://codecov.io/github/vskut/twigo)\n![Swagger](https://img.shields.io/swagger/valid/3.0?specUrl=https%3A%2F%2Fraw.githubusercontent.com%2FVSKut%2Ftwigo%2Fmaster%2Fapi%2Fswagger-spec%2Fapi.json)\n![License](https://img.shields.io/github/license/vskut/twigo)\n# Twigo APP\n\n### Install\n1. Set your ENV\n        \n        # Postgres\n        DB_HOST=db\n        DB_DRIVER=postgres\n        DB_USER=postgres\n        DB_PASSWORD=postgres\n        DB_NAME=postgres\n        DB_SSL_MODE=disable\n        \n        # gRPC server\n        SERVER_HOST=server\n        SERVER_PORT=8081\n        \n        # Rest gateway\n        GATEWAY_HOST=\n        GATEWAY_PORT=8080\n        \n        # JWT secret key\n        JWT_SECRET=jwtSecretKey\n        \n2. `docker-compose -f deployments/docker-compose.yml up` or `make dockerize`\n3. Endpoints hosted on http://GATEWAY_HOST:GATEWAY_PORT/\n4. Open [Swagger](http://127.0.0.1:8082/)\n\n### Endpoints\n`POST /register` - create new account with specified nick(unique in app), email, and password\n\t\n\tPayload: \n\t\tusername - some user name\n\t\temail - user email address\n\t\tpassword - some password \n\t\n\tResult: \n\t\tid - primary key\n\t\tusername - username which you specified in payload \n\t\temail   - user email address which you specified in payload \n\n`POST /login` - accept email and password  and return token, uses JWT\n\t\n\tPayload:\n\t\temail - user email address\n\t\tpassword - some password \n\n\tResult:\n\t\ttoken - jwt token\n\t\t\n`POST /subscribe` - add account with login to your subscription list, you start seeing his tweets in your feeds \n\t\n\tPayload: \n\t\tnickname - nick name for account for which you want to subscribe \n\n`POST /tweets` - create a tweet, account id should be found from JWT\n\n\tPayload: \n\t\tmessage - some tweet message\n\n\tResult:\n\t\tid - message primary key \n\t\tmessage - tweet message\n\n`GET /tweets` - return all tweets from your subscriptions \n\t\n\tResult:\n\t\ttweets -  all tweets from your subscriptions ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvskut%2Ftwigo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvskut%2Ftwigo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvskut%2Ftwigo/lists"}