{"id":16209176,"url":"https://github.com/robbdimitrov/thoughts","last_synced_at":"2025-03-19T08:31:00.012Z","repository":{"id":53474846,"uuid":"163316569","full_name":"robbdimitrov/thoughts","owner":"robbdimitrov","description":"Twitter clone using k8s, node, react, python and go","archived":false,"fork":false,"pushed_at":"2023-02-19T07:57:58.000Z","size":2021,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T05:11:24.592Z","etag":null,"topics":["docker","golang","grpc","javascript","kubernetes","python","react"],"latest_commit_sha":null,"homepage":"","language":"Python","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/robbdimitrov.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":"2018-12-27T16:43:18.000Z","updated_at":"2025-03-09T20:43:23.000Z","dependencies_parsed_at":"2024-06-20T11:09:19.532Z","dependency_job_id":"143efcbe-581e-440c-9d95-692965ca1015","html_url":"https://github.com/robbdimitrov/thoughts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robbdimitrov%2Fthoughts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robbdimitrov%2Fthoughts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robbdimitrov%2Fthoughts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robbdimitrov%2Fthoughts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robbdimitrov","download_url":"https://codeload.github.com/robbdimitrov/thoughts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244389779,"owners_count":20445001,"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":["docker","golang","grpc","javascript","kubernetes","python","react"],"created_at":"2024-10-10T10:28:21.634Z","updated_at":"2025-03-19T08:30:59.147Z","avatar_url":"https://github.com/robbdimitrov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thoughts\n\n**Thoughts** is a post-sharing application where users can create, browse,\nlike and repost posts and follow other users.\n\n## Architecture\n\nService | Language | Description\n--- | --- | ---\n[apigateway](/src/apigateway) | Go | API Gateway between the frontend and the backend services.\n[authservice](/src/authservice) | Python | Authentication service for creation and validation of sessions.\n[database](/src/database) | SQL | PostgreSQL database with tables, relationships and functions.\n[frontend](/src/frontend) | JavaScript | React frontend of the app.\n[postservice](/src/postservice) | Go | Service for creation, liking, reposting and fetching of posts.\n[userservice](/src/userservice) | Python | Service for creation, following and fetching of users.\n\n## Setup\n\n### Clone the repository\n\nClone the repository to your filesystem\n\n```sh\ngit clone git@github.com:robbdimitrov/thoughts.git\ncd thoughts\n```\n\n### Build the images\n\nBuild all the images\n\n```sh\nmake\n```\n\nOr build specific images\n\n```sh\nmake apigateway\nmake authservice\nmake database\nmake frontend\nmake postservice\nmake userservice\n```\n\n### Create namespace\n\nCreate namespace for the k8s resources\n\n```sh\nkubectl create namespace thoughts\n```\n\n### Create deployments\n\nCreate deployments and volumes\n\n```sh\nkubectl apply -f ./k8s -n thoughts\n```\n\n## Access the frontend\n\nEnable port forwarding\n\n```sh\nkubectl port-forward service/frontend 8080:8080 -n thoughts\n```\n\nOpen the frontend [here](http://localhost:8080/).\n\n## Cleanup\n\nDelete all resources\n\n```sh\nkubectl delete -f ./k8s -n thoughts\n```\n\nDelete the namespace\n\n```sh\nkubectl delete namespace thoughts\n```\n\n## API\n\nThe API documentation is available [here](/API.md).\n\n## License\n\nLicensed under the [MIT](LICENSE) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobbdimitrov%2Fthoughts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobbdimitrov%2Fthoughts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobbdimitrov%2Fthoughts/lists"}