{"id":24072678,"url":"https://github.com/onaio/ansible-react","last_synced_at":"2025-10-08T06:10:26.438Z","repository":{"id":41877045,"uuid":"151249319","full_name":"onaio/ansible-react","owner":"onaio","description":"Install and configure React apps","archived":false,"fork":false,"pushed_at":"2024-03-01T13:42:17.000Z","size":142,"stargazers_count":4,"open_issues_count":5,"forks_count":3,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-03-30T10:41:34.158Z","etag":null,"topics":["ansible","ansible-react","ansible-role","ansible-roles","react"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onaio.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":"2018-10-02T12:17:21.000Z","updated_at":"2024-08-22T19:50:47.000Z","dependencies_parsed_at":"2022-07-22T05:32:14.784Z","dependency_job_id":null,"html_url":"https://github.com/onaio/ansible-react","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onaio%2Fansible-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onaio%2Fansible-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onaio%2Fansible-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onaio%2Fansible-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onaio","download_url":"https://codeload.github.com/onaio/ansible-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251336389,"owners_count":21573188,"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":["ansible","ansible-react","ansible-role","ansible-roles","react"],"created_at":"2025-01-09T17:19:32.639Z","updated_at":"2025-10-08T06:10:21.358Z","avatar_url":"https://github.com/onaio.png","language":"Python","readme":"# ansible-react\n\n[![Build Status](http://cicd.onalabs.org/api/badges/onaio/ansible-react/status.svg)](http://cicd.onalabs.org/onaio/ansible-react)\n\nInstall and configure react apps.\n\nThis is a simple and straight-to-the-point role to install react apps.  it is tested against apps that were created using [create react app](https://github.com/facebook/create-react-app).\n\nWe only install and configure:\n\n- node\n- yarn\n- and of course all the javascript packages that your project uses\n\nWe intentionally consider the installation and configuration of web servers, and other things as out of scope for this role.  Therefore, naturally this role is to be used in a playbook that installs and configures those other things, if you need them.\n\n## Role Variables\n\nSome of the more important variables are briefly described below.  You can see all variables by looking at the `defaults/main.yml` file.\n\n```yml\nreact_system_user: \"react\"  # name of the user that will own the django installation\nreact_node_version: 10.x  # the version of node to install\n\nreact_git_url: \"https://github.com/onaio/kaznet-frontend.git\"  # the git repo of your django app which we are installing\nreact_git_key:\n\nreact_remote_js_build: # whether to compile the app on the target host or on the controlling host. \n# When compiling the app on the controlling host, you will need to make sure that node and yarn is installed.\n```\n\n### Custom environment variables\n\n[Create react app](https://github.com/facebook/create-react-app) supports [custom environment variables](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-custom-environment-variables) and this role does too!\n\nYou can set custom environment variables by using the `react_app_settings` variable, like so:\n\n```yml\nreact_app_settings:\n    REACT_APP_WEBSITE_NAME: 'Example App'\n    SOMETHING_ELSE: \"you can put anything here\"\n```\n\n## Testing\n\nThis project comes with a Vagrantfile, this is a fast and easy way to test changes to the role, fire it up with `vagrant up`.\n\nSee [vagrant docs](https://docs.vagrantup.com/v2/) for getting setup with vagrant\n\n## License\n\nApache 2\n\n## Authors\n\n[Ona Engineering](https://ona.io)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonaio%2Fansible-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonaio%2Fansible-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonaio%2Fansible-react/lists"}