{"id":20509228,"url":"https://github.com/harrisoncramer/ts-react-dockerized","last_synced_at":"2025-12-04T14:04:39.652Z","repository":{"id":53669304,"uuid":"321190213","full_name":"harrisoncramer/ts-react-dockerized","owner":"harrisoncramer","description":"Template for building and deploying a React project (with Typescript) using Docker and Nginx as a reverse proxy.","archived":false,"fork":false,"pushed_at":"2021-04-14T01:12:05.000Z","size":952,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-29T16:48:09.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/harrisoncramer.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-12-14T00:26:08.000Z","updated_at":"2023-02-19T05:10:33.000Z","dependencies_parsed_at":"2022-09-04T22:01:29.240Z","dependency_job_id":null,"html_url":"https://github.com/harrisoncramer/ts-react-dockerized","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/harrisoncramer/ts-react-dockerized","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrisoncramer%2Fts-react-dockerized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrisoncramer%2Fts-react-dockerized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrisoncramer%2Fts-react-dockerized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrisoncramer%2Fts-react-dockerized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harrisoncramer","download_url":"https://codeload.github.com/harrisoncramer/ts-react-dockerized/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrisoncramer%2Fts-react-dockerized/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27501815,"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-12-04T02:00:07.142Z","response_time":60,"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":[],"created_at":"2024-11-15T20:23:28.180Z","updated_at":"2025-12-04T14:04:39.619Z","avatar_url":"https://github.com/harrisoncramer.png","language":"TypeScript","readme":"# 🚀 Containerized Typescript React Application\n\nThis is a dockerized frontend application using React and the following technologies:\n\n- Apollo GraphQL for data fetching\n- React Router for routing\n- Google Analytics for usage tracking and metrics\n- Jest for Testing\n- React Bootstrap\n- Node-Sass for SCSS\n\nIt's built to use a GraphQL backend, like [this](https://github.com/KingOfCramers/typeorm-typegrapqhl-api) one.\n\n## Development\n\n1. Define any additional development variables inside a `.env.development` file. By default, the `.env.development` file doesn't require any variables, but it must exist.\n2. You can start up the server with the `./dock dev start` by using the supplied bash script. Alternatively, run the `docker-compose` command by hand: `PORT=3000 docker-compose -f docker-compose.dev.yml up` which will run your application locally, and expose it on `http://localhost:3000`\n\n## Testing\n\n1. Define any additional variables inside a `.env.test` file. By default, the `.env.test` file doesn't require any variables, but it must exist.\n2. Run tests with the `./dock test start` command, or run the `docker-compose` command by hand: `docker-compose -f docker-compose.test.yml run --rm react_test`\n\n## Production\n\nIn production, this application can be served standalone or via Kubernetes.\n\nTo serve it standalone, simply run: `docker run -d -p 80:80 kingofcramers/ts-react` or whatever you elect to name your docker image.\n\nIn kubernetes, the configuration files are stored inside the `infrastructure` folder. There is a separate readme for configuring your cluster contained in that folder.\n\n## Installing NPM Packages (development)\n\n1. Install in the running container `docker exec typeorm-api npm install PACKAGE_NAMES`\n2. Install the packages locally with `npm install` (no need to specify the packages, because they will get picked up in your package.json file)\n\nNote that you will have to `exec` install in your test container for the packages to be used there as well.\n\n## Logs\n\nUse the `./dock dev logs` command to follow the logs in development (they'll be hidden if you start your development server with the `--detached` flag).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharrisoncramer%2Fts-react-dockerized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharrisoncramer%2Fts-react-dockerized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharrisoncramer%2Fts-react-dockerized/lists"}