{"id":22013217,"url":"https://github.com/phanletrunghieu/simple-twitter","last_synced_at":"2025-03-23T08:22:30.040Z","repository":{"id":40856913,"uuid":"240651068","full_name":"phanletrunghieu/simple-twitter","owner":"phanletrunghieu","description":"A very simple version of Twitter","archived":false,"fork":false,"pushed_at":"2023-01-05T07:21:24.000Z","size":9547,"stargazers_count":1,"open_issues_count":21,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T15:14:09.222Z","etag":null,"topics":["golang","graphql","nextjs","reactjs"],"latest_commit_sha":null,"homepage":"https://simpletwitter.tk","language":"JavaScript","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/phanletrunghieu.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}},"created_at":"2020-02-15T05:35:47.000Z","updated_at":"2020-03-24T17:00:23.000Z","dependencies_parsed_at":"2023-02-03T18:02:10.443Z","dependency_job_id":null,"html_url":"https://github.com/phanletrunghieu/simple-twitter","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/phanletrunghieu%2Fsimple-twitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanletrunghieu%2Fsimple-twitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanletrunghieu%2Fsimple-twitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanletrunghieu%2Fsimple-twitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phanletrunghieu","download_url":"https://codeload.github.com/phanletrunghieu/simple-twitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245073773,"owners_count":20556616,"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":["golang","graphql","nextjs","reactjs"],"created_at":"2024-11-30T03:18:10.763Z","updated_at":"2025-03-23T08:22:29.999Z","avatar_url":"https://github.com/phanletrunghieu.png","language":"JavaScript","readme":"# Simple Twitter\nA very simple version of Twitter (https://simpletwitter.tk)\n\n## Table of Contents\n\n* [About the Project](#about-the-project)\n  * [Built With](#built-with)\n* [Getting Started](#getting-started)\n  * [Prerequisites](#prerequisites)\n  * [Installation](#installation)\n* [Architect](#Architect)\n  * [Current Architect](#current-architect)\n  * [Scale Architect](#scale-architect)\n* [Contact](#contact)\n\n\n## About The Project\n\n### Built With\n* [Golang](https://golang.org)\n* [GraphQL](https://gqlgen.com)\n* [NextJs](https://nextjs.org), [Redux](https://redux.js.org)\n* [Docker](https://docs.docker.com)\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Prerequisites\n\n* NodeJs v10.16.3 and up\n* Golang 1.12 and up\n* Docker 19.03.5 and up\n* Docker Compose 1.24.1 and up\n\n### Installation\n\n**1. Backend**\n```\ncd backend\n```\n\n**1.1. Setup database (Postgres \u0026 Redis)**\n\n```\nmake local-db\n```\nImport `db.sql` file to `postgres` container\n\n**1.2. Run server**\n```\nmake run\n```\n**2. Frontend**\n\n```\ncd frontend\n```\n\n**2.1. Install modules**\n```\nyarn install\n```\n**2.2. Start app**\n```\nyarn dev\n```\n\n## Architect\n\n### Current Architect\n\n![Current Architecy](/doc/images/current-architect.png)\n\n### Scale Architect\n\nFor scaling the system that can serve milions of users, we can:\n\n- Deploy API server with many instance and loadbalance for requests.\n- Deploy databases with master/slave architecture.\n- Store data in `tweets` table with sharding by location. Ex: Tweets created by Vietnamese is stored in server in Vietnam, \ntweets created by Singaporean is stored in server in Singapore.\n\n![Scale Architecy](/doc/images/scale-architect.png)\n\n## Contact\n\nHiếu Phan - hieutrunglephan@gmail.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphanletrunghieu%2Fsimple-twitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphanletrunghieu%2Fsimple-twitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphanletrunghieu%2Fsimple-twitter/lists"}