{"id":20927271,"url":"https://github.com/fergusdixon/fullstack-meme-maker","last_synced_at":"2026-04-09T16:03:44.476Z","repository":{"id":132653737,"uuid":"359403379","full_name":"fergusdixon/fullstack-meme-maker","owner":"fergusdixon","description":"An example of a fullstack React \u0026 FastAPI application for generating memes","archived":false,"fork":false,"pushed_at":"2023-02-11T02:39:41.000Z","size":5520,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-19T18:35:11.673Z","etag":null,"topics":["aws","docker","fastapi","fullstack","react"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/fergusdixon.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":"2021-04-19T09:33:32.000Z","updated_at":"2021-05-05T15:41:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4e6c57e-ac7c-4646-974d-93838a76e0b2","html_url":"https://github.com/fergusdixon/fullstack-meme-maker","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/fergusdixon%2Ffullstack-meme-maker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fergusdixon%2Ffullstack-meme-maker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fergusdixon%2Ffullstack-meme-maker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fergusdixon%2Ffullstack-meme-maker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fergusdixon","download_url":"https://codeload.github.com/fergusdixon/fullstack-meme-maker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243320463,"owners_count":20272501,"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":["aws","docker","fastapi","fullstack","react"],"created_at":"2024-11-18T20:47:12.520Z","updated_at":"2025-12-28T16:22:00.804Z","avatar_url":"https://github.com/fergusdixon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fullstack-meme-maker\n\nAn example of a fullstack React \u0026 FastAPI application for generating memes\n\nSome links:\n\nThe React frontend:\n\nhttp://fulls-LoadB-16QUR6NDC2L03-1254964837.eu-west-2.elb.amazonaws.com\n\nThe API docs:\n\nhttp://fulls-LoadB-16QUR6NDC2L03-1254964837.eu-west-2.elb.amazonaws.com:8080/docs\n\n## Deploy\n\nUses [ECS integration](https://docs.docker.com/cloud/ecs-integration/) with docker compose, \nso ensure you have a docker context linked to your AWS account:\n\n```shell\ndocker context create ecs meme-maker\n```\n\nFollow the prompts to link credentials\n\n```shell\ndocker --context meme-maker compose up\n```\n\nWill create each service on AWS Fargate, with a loadbalancer pointing to the fronted on HTTP port `80` and the\nAPI on port `8080`\n\n\n## Quickstart (to develop)\n\nRelies on the old version of [docker-compose](https://docs.docker.com/compose/) unlike the deploy\nThis is to take advantage of `docker-compose.override.yml` to make local dev quicker, like code reloading\n\n\n```shell\ndocker-compose build\ndocker-compose up\n```\n\n\n### meme-api\n\nBasic FastAPI (Py3.8) backend for creating memes\n\nAvailable at localhost:8080 (OpenAPI docs at localhost:8080/docs)\nThe container has a volume set up so code changes locally will reflect in the container and be reloaded.\n\nIt retrieves memes from a simple MongoDB instance, the first time it starts it will populate some dummy data.\n\nEither work in the docker container\n\n```shell\ndocker-compose exec meme-api bash\n```\n\nOr set up a virtual environment using [Poetry](https://python-poetry.org/docs/#installation)\n\n```shell\ncd meme-api\npoetry install\npoetry shell\n```\n\nThe next commands expect you to be in either the `/app` directory in the docker container or\nthe `meme-api` directory of the repo if you chose to set up a virtual environment\n\n\n#### Linting\n\nScript for checking style issues\n\n```shell\n./scripts/lint.sh\n```\n\nScript for fixing style issues\n\n```shell\n./scripts/format-imports.sh\n```\n\n\n#### Testing\n\nThe API has 100% coverage excluding things like parsing settings files (brings it down to about 94%)\nTests only work inside the docker container due to how the static file directory is mounted,\nyou may run them within the container using:\n\n```shell\n./scripts/test.sh\n```\n\nOr from the root of the repo\n\n```shell\ndocker-compose exec meme-api ./scripts/test.sh\n```\n\n\n### meme-react-frontend\n\nReact Frontend for creating memes\n\nAvailable at http://localhost when using docker-compose\nFor development it is recommended to use the npm script to get autoreload\n\nFrom the meme-react-frontend directory:\n\n```shell\nyarn run start\n```\n\nAccess on localhost:3000\n\n#### Tests\nUses Jest\n\nCan run a handy TDD buddy with:\n\n```shell\nyarn test\n```\n\nOr get coverage as well with:\n\n```shell\nyarn test --coverage --watchAll\n```\n\n\n#### Monitoring\n\nUses a manually created Cloudwatch dashboard with alarms for monitoring:\n\n![Screenshot 2021-04-21 at 17 51 28](https://user-images.githubusercontent.com/25303488/115584665-3c614300-a2cb-11eb-97a6-ce868a375780.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffergusdixon%2Ffullstack-meme-maker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffergusdixon%2Ffullstack-meme-maker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffergusdixon%2Ffullstack-meme-maker/lists"}