{"id":18451303,"url":"https://github.com/conformist-mw/django_react","last_synced_at":"2025-04-19T13:58:29.136Z","repository":{"id":18135068,"uuid":"83485779","full_name":"conformist-mw/django_react","owner":"conformist-mw","description":"Django REST API viewer with react and react router","archived":false,"fork":false,"pushed_at":"2025-03-08T18:30:48.000Z","size":1878,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-17T12:53:54.570Z","etag":null,"topics":["django","django-rest-framework","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Python","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/conformist-mw.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":"2017-02-28T22:29:36.000Z","updated_at":"2024-10-09T20:01:03.000Z","dependencies_parsed_at":"2023-01-11T20:28:09.470Z","dependency_job_id":"530b7822-76c2-4a44-9ae7-c990d3157f75","html_url":"https://github.com/conformist-mw/django_react","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/conformist-mw%2Fdjango_react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conformist-mw%2Fdjango_react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conformist-mw%2Fdjango_react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conformist-mw%2Fdjango_react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/conformist-mw","download_url":"https://codeload.github.com/conformist-mw/django_react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249494130,"owners_count":21281660,"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-rest-framework","hacktoberfest"],"created_at":"2024-11-06T07:28:11.359Z","updated_at":"2025-04-18T12:36:00.639Z","avatar_url":"https://github.com/conformist-mw.png","language":"Python","readme":"# Django REST API Instant view\nThis project is example of Single Page Application. Core of this project is React Component that show loaded data through http requests from API driven by Django REST Framework. Navigation implements with React Router 4. \n\n## Usage\nFirst of all clone this repo on local machine into virtualenv:\n```\n$ virtualenv -p python3 project\n$ cd project\n$ source bin/activate\n$ git clone https://github.com/conformist-mw/django_react\n$ cd django_react\n```\nNow is required to install all django dependencies:\n```\npip install -r requirements.txt\n```\nMigrations for database already made, so after setup `django_react/settings.py` you can migrate db:\n```\npython manage.py migrate\n```\nIn User model implement staticmethod `_bootstrap()` that intended to populate database with fake data. To accomplish this run:\n```\npython manage.py shell\n from instant.models import User\n User._bootstrap()\n```\nThis creates 300 rows of male persons, feel free to run with params `count` and `gender`.\nNow just run django development server and open in browser [link](http://127.0.0.1:8000/)\n```\npython manage.py runserver\n```\nAll done, it works.\n# Development\nIf you want to make changes in `assets/js/index.jsx` it is required to setup npm:\n```\n$ sudo apt install npm\n```\nbut may be it doesn't work as expected with npm from linux repositories. So you have to update it:\n```\n$ sudo npm install -g npm\n$ sudo ln -s /usr/bin/nodejs /usr/bin/node\n$ sudo npm install -g npm\n```\nNow run `npm install` in working directory. For futher setup see this [link](https://github.com/owais/django-webpack-loader)\nIn `package.json` available two commands:\n```\nnpm run watch\nnpm run prod\n```\nfirst of it — live build while you edit `.jsx` file and second is build production version `main.bundle.js`.\n\n## Useful links\n* [Django project](https://www.djangoproject.com/)\n* [Django REST Framework](http://www.django-rest-framework.org/)\n* [Elizabeth](https://github.com/lk-geimfari/elizabeth)\n* [React JS](https://facebook.github.io/react/)\n* [React Router](https://reacttraining.com/react-router/web/guides/quick-start)\n* [Webpack](https://webpack.js.org/)\n* [Babel](https://babeljs.io/)\n* [Axios](https://github.com/mzabriskie/axios)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconformist-mw%2Fdjango_react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconformist-mw%2Fdjango_react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconformist-mw%2Fdjango_react/lists"}