{"id":25165539,"url":"https://github.com/diogosouza/django-react-example","last_synced_at":"2025-04-05T12:01:51.507Z","repository":{"id":43543192,"uuid":"225177526","full_name":"diogosouza/django-react-example","owner":"diogosouza","description":"A simple integration between Django API and React App","archived":false,"fork":false,"pushed_at":"2025-01-27T00:18:54.000Z","size":4203,"stargazers_count":106,"open_issues_count":14,"forks_count":51,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T11:03:20.267Z","etag":null,"topics":["django","django-api","integration","javascript","logrocket","python","react","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/diogosouza.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-01T14:46:17.000Z","updated_at":"2025-02-04T17:27:53.000Z","dependencies_parsed_at":"2024-11-29T18:22:00.566Z","dependency_job_id":null,"html_url":"https://github.com/diogosouza/django-react-example","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/diogosouza%2Fdjango-react-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogosouza%2Fdjango-react-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogosouza%2Fdjango-react-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogosouza%2Fdjango-react-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diogosouza","download_url":"https://codeload.github.com/diogosouza/django-react-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332556,"owners_count":20921853,"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":["django","django-api","integration","javascript","logrocket","python","react","reactjs"],"created_at":"2025-02-09T05:07:56.880Z","updated_at":"2025-04-05T12:01:51.490Z","avatar_url":"https://github.com/diogosouza.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React App + Django API\n\nA simple integration between a Django API and a React App as a result of my article: [Creating an app with React and Django](https://blog.logrocket.com/creating-an-app-with-react-and-django/).\n\nThis project consists of two internal projects:\n\n- *students*: the Django project containing the REST API along with all the backend code;\n- *students-fe*: the React project with all the Node dependencies, settings and things related to the frontend.\n\n## Run it locally\n\nIn order to run the projects locally you need to have Node, npm and `python3` installed on your machine.\n\n### Running the Django project\n\nFirst, create a Python virtual environment to isolate the projects:\n\n```bash\npython3 -m venv logrocket_env\n```\n\nThen, activate it:\n\n```bash\nsource logrocket_env/bin/activate\n```\n\n`cd` into the _venv_ and clone the project from GitHub:\n\n```bash\ngit clone https://github.com/diogosouza/django-react-logrocket.git\n```\n\nAdd the Django dependencies:\n\n```bash\npip install django djangorestframework django-cors-headers\n```\n\nFinally, `cd` into the _django-react-logrocket_ folder and run the project:\n\n```bash\npython manage.py runserver\n```\n\nThat's it!\n\nAccess the address http://localhost:8000/api/students/ and check if the API is up.\n\n### Running the React project\n\nFirst, `cd` the _students-fe_ directory and run:\n\n```bash\nnpm install\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiogosouza%2Fdjango-react-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiogosouza%2Fdjango-react-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiogosouza%2Fdjango-react-example/lists"}