{"id":20109994,"url":"https://github.com/distributed-lab/react-template","last_synced_at":"2025-07-18T11:36:47.756Z","repository":{"id":180367507,"uuid":"658282559","full_name":"distributed-lab/react-template","owner":"distributed-lab","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-11T10:06:01.000Z","size":2241,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-05T13:47:08.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/distributed-lab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-06-25T09:56:46.000Z","updated_at":"2024-12-11T10:06:05.000Z","dependencies_parsed_at":"2025-01-13T05:41:05.738Z","dependency_job_id":"4781cb8a-2a7c-43ba-8a2f-0e7732bad1cb","html_url":"https://github.com/distributed-lab/react-template","commit_stats":null,"previous_names":["distributed-lab/react-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/distributed-lab/react-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributed-lab%2Freact-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributed-lab%2Freact-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributed-lab%2Freact-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributed-lab%2Freact-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/distributed-lab","download_url":"https://codeload.github.com/distributed-lab/react-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributed-lab%2Freact-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265752368,"owners_count":23822951,"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":[],"created_at":"2024-11-13T18:10:02.774Z","updated_at":"2025-07-18T11:36:47.205Z","avatar_url":"https://github.com/distributed-lab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Distributed Lab react started template\n\n## Soft deprecation notice\n\n---\n\nI now consider this repo as softly deprecated, since it's based on pure scss and aimed to maximize the flexibility of designing possibilities. Tailwind and MUI now, can cover all the needs and provide the same flexibility with cleaner code, so I recommend using them instead.\n\n---\n\n| command                      | description                             |\n|------------------------------|-----------------------------------------|\n| `yarn install` / `yarn`      | install dependencies                    |\n| `yarn start`                 | start dev server                        |\n| `yarn build`                 | build project                           |\n| `yarn lint`                  | lint files (eslint + stylelint)         |\n| `yarn rsc [release-version]` | Lints release/release candidate version |\n|                              |                                         |\n\n`.env-development` and `.env-production` is the custom solution for CI, which is used to build the app for different environments e.g. staging and production in github workflow files.\n\nBefore start development or manual deploy app with `dist` dir - make sure you have copied `.env-[environment]` file in to `.env.[environment]` file, where `[environment]` is the name of the environment, e.g. `.env-production` or `.env-staging` and fulfill it with your own values.\n\n```bash\ncp .env-development .env.development\n# or\ncp .env-production .env.production\n```\n\n### Build docker image with version\n```dockerfile\n docker build --no-cache --progress=plain --build-arg BUILD_VERSION=1.0.0-rc.0 -t react-template .\n```\n\n#### important\ndocker-compose config works with `.env` file only, so make sure you have it\n\n### Run container\n```\ndocker run -d -p 80:80 --name [container-name] [image-name]\n```\n\n## Prepare for deployment\n`.env-development` and `.end-production` is a files, which are used to run build in github workflow files, e.g. [here](.github/workflows/main.yml) at line 32\n\nIt sets the environment variables for the `vitejs` build, which are called in werf.yaml file `yarn start` command.\n\nAfter that, docker image could be used to deploy the app\n\nIf you want to build app locally, you can copy `.env-production` files and fulfill it with your own values, then run command `yarn build` or `.env-development` for `yarn start` command\n\n### Dealing with env variables\nEnv variables can be rewritten by [env.is] (./static/env.js) file in runtime. To do so, we need to provide same [env variables](.env.example) there in json format\n\n## Some additional features\n\n### JsonApi lib\n\n[@distributedlab/jac](https://distributed-lab.github.io/web-kit/modules/_distributedlab_jac.html)\n\n### Web3 provider wrapper lib\n\n[@distributedlab/w3p](https://distributed-lab.github.io/web-kit/modules/_distributedlab_w3p.html)\n\n### Utils, tools, helpers, ...etc\n\n[@distributedlab/tools](https://distributed-lab.github.io/web-kit/modules/_distributedlab_tools.html)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](./LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributed-lab%2Freact-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistributed-lab%2Freact-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributed-lab%2Freact-template/lists"}