{"id":16175281,"url":"https://github.com/app-generator/django-react-user-roles","last_synced_at":"2025-04-07T11:14:14.567Z","repository":{"id":221333751,"uuid":"623367871","full_name":"app-generator/django-react-user-roles","owner":"app-generator","description":"Django \u0026 React - Extended User \u0026 Roles (free) | AppSeed","archived":false,"fork":false,"pushed_at":"2023-04-13T05:53:31.000Z","size":27,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T18:13:08.441Z","etag":null,"topics":["appseed","django-react","django-template"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/app-generator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-04-04T08:26:54.000Z","updated_at":"2023-04-17T05:09:05.000Z","dependencies_parsed_at":"2024-02-07T12:42:38.856Z","dependency_job_id":"d4321508-8048-4a24-8a22-5c7a22badbfc","html_url":"https://github.com/app-generator/django-react-user-roles","commit_stats":null,"previous_names":["app-generator/django-react-user-roles"],"tags_count":0,"template":false,"template_full_name":"app-generator/django-react-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdjango-react-user-roles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdjango-react-user-roles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdjango-react-user-roles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fdjango-react-user-roles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/django-react-user-roles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640467,"owners_count":20971558,"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":["appseed","django-react","django-template"],"created_at":"2024-10-10T04:44:32.429Z","updated_at":"2025-04-07T11:14:14.531Z","avatar_url":"https://github.com/app-generator.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Django \u0026 React Codebase](https://github.com/app-generator/django-react-starter)\n\nOpen-source **Django Starter** bundled with React, React-Flow - Actively supported by AppSeed. \n\n- 👉 [Django \u0026 React](https://django-react-starter.onrender.com/) - `LIVE deployment`\n- 🚀 Free [Support](https://appseed.us/support/) via `Email` \u0026 `Discord`\n\n\u003cbr /\u003e\n\n\u003e Feature: \n\n- 🚀 `Stack`: **Django** \u0026 **React**\n- ✅ Tooling: `Webpack`\n- ✅ `Design`: [Django Theme Datta](https://github.com/app-generator/django-admin-datta) - `Free Version`\n- ✅ `Sections` covered by the design:\n  - ✅ **Admin section** (reserved for superusers)\n  - ✅ **Authentication**: `Django.contrib.AUTH`, Registration\n  - ✅ **All Pages** available in for ordinary users \n- 🚀 `Deployment`: Docker, `CI/CD` flow via `Render`\n  \n\u003cbr /\u003e\n\n[![Django \u0026 React Codebase - Free Starter by AppSeed.](https://user-images.githubusercontent.com/51070104/229304184-ed3cd761-9a43-43f0-90ba-9a2fcb0a4534.png)](https://github.com/app-generator/django-react-starter)\n\n\u003cbr /\u003e \n\n## Start with `Docker`\n\n\u003e 👉 **Step 1** - Download the code from the GH repository (using `GIT`) \n\n```bash\n$ git clone https://github.com/app-generator/django-react-starter.git\n$ cd django-react-starter\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step 2** - Start the APP in `Docker`\n\n```bash\n$ docker-compose up --build \n```\n\nVisit `http://localhost:5085` in your browser. The app should be up \u0026 running.\n\n\u003cbr /\u003e\n\n## Manual Build\n\n\u003e Download the code \n\n```bash\n$ git clone https://github.com/app-generator/django-react-starter.git\n$ cd django-react-starter\n```\n\n\u003cbr /\u003e\n\n### 👉 Set Up for `Unix`, `MacOS` \n\n\u003e Install modules via `VENV`  \n\n```bash\n$ virtualenv env\n$ source env/bin/activate\n$ pip3 install -r requirements.txt\n```\n\n\u003cbr /\u003e\n\n\u003e Set Up Database\n\n```bash\n$ python manage.py makemigrations\n$ python manage.py migrate\n```\n\n\u003cbr /\u003e\n\n\u003e Start the APP\n\n```bash\n$ python manage.py createsuperuser # create the admin\n$ python manage.py runserver       # start the project\n```\n\nAt this point, the app runs at `http://127.0.0.1:8000/`. \n\n\u003cbr /\u003e\n\n### 👉 Set Up for `Windows` \n\n\u003e Install modules via `VENV` (windows) \n\n```\n$ virtualenv env\n$ .\\env\\Scripts\\activate\n$ pip3 install -r requirements.txt\n```\n\n\u003cbr /\u003e\n\n\u003e Set Up Database\n\n```bash\n$ python manage.py makemigrations\n$ python manage.py migrate\n```\n\n\u003cbr /\u003e\n\n\u003e Start the APP\n\n```bash\n$ python manage.py createsuperuser # create the admin\n$ python manage.py runserver       # start the project\n```\n\n\nAt this point, the app runs at `http://127.0.0.1:8000/`. \n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n## Profile\n\n- We have created a model `UserProfile` and make one to one relationship between `User` and `UserProfile`. That means a user has only one profile.\n- Signals used for:\n  - We are using signals for creating a new profile automatically.\n  - Here we have used `post_save` signals. That means when a new User is created a new Profile will create automatically.\n- In `apps.py` file we have add this line of code. Here we have registered the signals with the app by importing the `signals` inside `ready` method. It is important to include cause we have used `receiver` in `signals.py` file.\n  ```base\n    def ready(self):\n        import apps.home.signals\n  ```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n## Codebase Structure\n\nThe project is coded using a simple and intuitive structure presented below:\n\n```bash\n\u003c PROJECT ROOT \u003e\n   |\n   |-- core/                            \n   |    |-- settings.py      # Project Configuration  \n   |    |-- urls.py          # Project Routing\n   |\n   |-- apps/\n   |    |-- home/            # Handle the default route  \n   |\n   |-- frontend/             # React Code\n   |\n   |-- requirements.txt      # Project Dependencies\n   |-- manage.py             # Start the app - Django default start script\n   |\n   |-- ************************************************************************\n```\n\n\u003cbr /\u003e\n\n---\n[Django \u0026 React Codebase](https://github.com/app-generator/django-react-starter) - `Open-Source` starter crafted by **[AppSeed](https://appseed.us)**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fdjango-react-user-roles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fdjango-react-user-roles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fdjango-react-user-roles/lists"}