{"id":21974755,"url":"https://github.com/andrewrporter/flask-react-nginx","last_synced_at":"2025-04-28T15:36:33.920Z","repository":{"id":141138310,"uuid":"251108813","full_name":"AndrewRPorter/flask-react-nginx","owner":"AndrewRPorter","description":"Utilizing docker-compose to tie a flask application with react through nginx","archived":false,"fork":false,"pushed_at":"2022-07-18T13:00:02.000Z","size":1538,"stargazers_count":17,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-26T11:40:41.390Z","etag":null,"topics":["create-react-app","docker","docker-compose","flask","gunicorn-docker","nginx","react","setup-tutorial"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/AndrewRPorter.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":"2020-03-29T18:55:08.000Z","updated_at":"2024-10-21T12:56:31.000Z","dependencies_parsed_at":"2024-08-18T16:32:57.892Z","dependency_job_id":null,"html_url":"https://github.com/AndrewRPorter/flask-react-nginx","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/AndrewRPorter%2Fflask-react-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewRPorter%2Fflask-react-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewRPorter%2Fflask-react-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewRPorter%2Fflask-react-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewRPorter","download_url":"https://codeload.github.com/AndrewRPorter/flask-react-nginx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232154296,"owners_count":18480245,"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":["create-react-app","docker","docker-compose","flask","gunicorn-docker","nginx","react","setup-tutorial"],"created_at":"2024-11-29T15:47:43.178Z","updated_at":"2025-01-02T04:56:20.503Z","avatar_url":"https://github.com/AndrewRPorter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-react-nginx\n\nBasic setup connecting flask to a react node application.\n\n## client\n\nThe client directory was created using `create-react-app`. There are two Dockerfiles used for the client. One is for local development, using the node development server. The other builds the app into static files which are then served to nginx.\n\n## server\n\nThe server is responsible for exposing an api endpoint for client consumption.\n\n## Development\n\n`docker-compose -f conf/docker-dev.yml up`\n\nI have made this easier by adding a dev script\n\n`./scripts/dev.sh`\n\n_Note that the react development server will compile and refresh on file changes_\n\n## Production\n\n`docker-compose -f conf/docker-prod.yml up`\n\nI have made this easier by adding a production script\n\n`./scripts/prod.sh`\n\n## Usage\n\n- expose new api endpoints in the server view\n- read from endpoints in client\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewrporter%2Fflask-react-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewrporter%2Fflask-react-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewrporter%2Fflask-react-nginx/lists"}