{"id":16174876,"url":"https://github.com/app-generator/sample-docker-django-react","last_synced_at":"2025-03-19T00:31:01.649Z","repository":{"id":100503216,"uuid":"567813013","full_name":"app-generator/sample-docker-django-react","owner":"app-generator","description":"Docker Sample - Django \u0026 React (open-source) | AppSeed","archived":false,"fork":false,"pushed_at":"2022-11-21T16:39:51.000Z","size":2029,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T05:55:54.985Z","etag":null,"topics":["appseed-sample","django","docker","react"],"latest_commit_sha":null,"homepage":"https://blog.appseed.us/dockerize-react-django-free-sample/","language":"JavaScript","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,"publiccode":null,"codemeta":null}},"created_at":"2022-11-18T16:31:29.000Z","updated_at":"2023-08-05T07:57:43.000Z","dependencies_parsed_at":"2023-05-15T11:15:44.889Z","dependency_job_id":null,"html_url":"https://github.com/app-generator/sample-docker-django-react","commit_stats":null,"previous_names":[],"tags_count":2,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-docker-django-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-docker-django-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-docker-django-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Fsample-docker-django-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/sample-docker-django-react/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955701,"owners_count":20374373,"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-sample","django","docker","react"],"created_at":"2024-10-10T04:43:40.608Z","updated_at":"2025-03-19T00:31:01.638Z","avatar_url":"https://github.com/app-generator.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Dockerized React \u0026 Django](https://blog.appseed.us/dockerize-react-django-free-sample/) `sample` \n\nFull-Stack Seed project generated by **[React App Generator](https://appseed.us/generator/react/)** top of *Horizon Ui* design. The backend logic is provided by a simple, `easy-to-extend` API Server that manages the Authentication flow (login, registration, logout) using `JSON Web Tokens` (JWT).\n\n- 👉 [React Horizon UI](https://react-horizon-ui-chakra.appseed-srv1.com/#/auth/sign-in/default) - LIVE Demo (from a similar product)\n- 🚀 Built with [React App Generator](https://appseed.us/generator/react/), timestamp `2022-11-18 16:28`\n\n\u003cbr /\u003e\n\n## ✨ Start the app in 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/sample-docker-django-react.git\n$ cd sample-docker-django-react\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\n\u003cbr /\u003e\n\n\u003e 👉 **Step 3** - `Migrate DB`\n\n```bash\n$ docker-compose run --rm appseed-app python manage.py makemigrations\n$ docker-compose run --rm appseed-app python manage.py migrate\n```\n\n\u003cbr /\u003e\n\n\u003e 👉 **Step 4** - Access the `APP`\n\nVisit `http://127.0.0.1:3000` in your browser. The App should be `up \u0026 running`.\n\n\u003cbr /\u003e\n\n![React Horizon UI - Full-Stack starter provided by AppSeed and Simmmple.](https://user-images.githubusercontent.com/51070104/174428337-181e6dea-0ad9-4fe1-a35f-25e5fa656a9d.png)\n\n\u003cbr \u003e \n\n## ✨ `React` Horizon UI\n\n- Design crafted by *[Simmmple](https://simmmple.com/)*\n- Styled with `Chakra UI`\n- `Dark-Mode`, `RTL` Support\n- `UI Kit`: 70+ components, `8 Sample Pages`, `3 Customized Plugins`   \n\n\u003cbr /\u003e\n\n\u003e `Tests` (compatibility matrix)\n\n| NodeJS | NPM | YARN | \n| --- | --- | --- |  \n| `v14.0.0` | ✅ | ✅ |\n| `v16.0.0` | ✅ | ✅ | \n| `v18.0.0` | ✅ | ✅ |\n\n\n\u003cbr /\u003e\n\n## ✨ `Django API` Features\n\n- Stack: : `Django` / `DRF` / **SQLite** \n- `Up-to-date dependencies`\n- **DB Layer**: Django Native `ORM`, `SQLite` persistence\n- **Auth**: JWT tokens managed via `PyJWT`\n- [API Definition](https://docs.appseed.us/boilerplate-code/api-unified-definition) - the unified API structure implemented by this server\n\n\n\u003cbr /\u003e \n\n## ✨ How to use it\n\nBeing a full-stack product, the backend and the frontend should be compiled and started separately. \nBefore starting to compile the product, make sure you have the following tools installed in the environment:\n\n- [NodeJS](https://nodejs.org/en/) - version `14.x` or higher\n- [GIT](https://git-scm.com/) - used to clone tjhe sources from Github\n- [Python3](https://www.python.org/) - used in many tools\n\n\u003cbr /\u003e\n\n### 👉 Start the Frontend \n\n\u003e **Step 1** - Once the project is downloaded, change the directory to `react-ui`. \n\n```bash\n$ cd react-ui\n```\n\n\u003cbr \u003e\n\n\u003e **Step 2** - Install dependencies via NPM or yarn\n\n```bash\n$ npm i\n// OR\n$ yarn\n```\n\n\u003cbr /\u003e\n\n\u003e **Step 3** - Start in development mode\n\n```bash\n$ npm run start \n// OR\n$ yarn start\n```\n\n\u003cbr /\u003e\n\nAt this point, the app is available in the browser `localhost:3000` (the default address).\n\n\n\u003cbr /\u003e \n\n### 👉 Start the Backend Server \n\n\u003e **Step 1** - Change the directory to `api-server-django`\n\n```bash\n$ cd api-server-django\n```\n\n\u003cbr \u003e\n\n\u003e **Step 2** - Install dependencies using a `virtual environment`\n\n```bash\n$ # Virtualenv modules installation (Unix based systems)\n$ virtualenv env\n$ source env/bin/activate\n$\n$ # Virtualenv modules installation (Windows based systems)\n$ # virtualenv env\n$ # .\\env\\Scripts\\activate\n$\n$ pip install -r requirements.txt\n```\n\n\u003cbr /\u003e\n\n\u003e **Step 3** - Setup the database \n\n```bash\n$ python manage.py makemigrations\n$ python manage.py migrate\n```\n\n\u003cbr /\u003e\n\n\u003e **Step 4** - Start the API server (development mode)\n\n```bash\n$ python manage.py runserver 5000\n```\n\nUse the API via `POSTMAN` or `Swagger Dashboard` at `localhost:5000`.\n\n\u003cbr /\u003e \n\n---\n[Dockerized React \u0026 Django](https://blog.appseed.us/dockerize-react-django-free-sample/) - `Sample Project` generated by **[App Generator](https://appseed.us/generator/)**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-docker-django-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Fsample-docker-django-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Fsample-docker-django-react/lists"}