{"id":15580771,"url":"https://github.com/kevinshen56714/create-react-django-app","last_synced_at":"2025-10-06T20:25:26.497Z","repository":{"id":92369818,"uuid":"493890239","full_name":"kevinshen56714/create-react-django-app","owner":"kevinshen56714","description":"React + Django + PostgreSQL app template","archived":false,"fork":false,"pushed_at":"2022-06-09T18:48:37.000Z","size":206,"stargazers_count":34,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T06:23:31.540Z","etag":null,"topics":["create-react-app","create-react-app-template","create-react-app-typescript","django","django-rest-framework","full-stack","full-stack-web-development","poetry-python","postgres","postgresql","python","python3","react","reactjs","rest-api","restful-api","typescript"],"latest_commit_sha":null,"homepage":"","language":"Python","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/kevinshen56714.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":"2022-05-19T02:15:43.000Z","updated_at":"2025-02-17T16:19:48.000Z","dependencies_parsed_at":"2023-05-17T00:45:28.239Z","dependency_job_id":null,"html_url":"https://github.com/kevinshen56714/create-react-django-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/kevinshen56714/create-react-django-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinshen56714%2Fcreate-react-django-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinshen56714%2Fcreate-react-django-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinshen56714%2Fcreate-react-django-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinshen56714%2Fcreate-react-django-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinshen56714","download_url":"https://codeload.github.com/kevinshen56714/create-react-django-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinshen56714%2Fcreate-react-django-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278672986,"owners_count":26026011,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","create-react-app-template","create-react-app-typescript","django","django-rest-framework","full-stack","full-stack-web-development","poetry-python","postgres","postgresql","python","python3","react","reactjs","rest-api","restful-api","typescript"],"created_at":"2024-10-02T19:39:35.801Z","updated_at":"2025-10-06T20:25:26.436Z","avatar_url":"https://github.com/kevinshen56714.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kevin's React + Django + PostgreSQL app template\n\n![Image](https://user-images.githubusercontent.com/11501902/169211080-f0beca5a-ccb9-430a-8609-266e458d5ec0.png)\n\n\u003e **Note**\n\u003e Customers can be added with the backend GUI at localhost:8000/customer/create or through POST request\n\n## What's included?\n\n### Frontend\n\n- TypeScript (frontend language)\n- React (frontend framework)\n  - Create React App (support for TSX, ES6, TypeScript, no need to install bundler, ...etc)\n  - An example fetch() GET request to the server in [`client/src/App.tsx`](https://github.com/kevinshen56714/create-react-django-app/blob/bb16565cff0d6d1d41a3d3f487f745b08d0a34f6/client/src/App.tsx#L11)\n\n### Backend\n\n- Python3 (backend language)\n  - Poetry (Python dependency management system)\n  - Black (formatter)\n  - Psycopg2 (PostgreSQL adapter for Python)\n  - Python-decouple (to get env file content)\n- Django (backend framework)\n  - Django REST Framework (Django's toolkit for building Web APIs)\n  - An example app in the [`server/exampleApp`](https://github.com/kevinshen56714/create-react-django-app/tree/main/server/exampleApp) folder showing how to setup API models, serializers, and views\n- PostgreSQL (database)\n\n## Getting Started\n\nClone this repository to your local machine:\n\n```bash\n$ git clone https://github.com/kevinshen56714/create-react-django-app.git\n```\n\n### To run the client\n\nIn the project folder,\n\n```bash\n$ cd client\n$ yarn \u0026\u0026 yarn start\n```\n\n### To run the server\n\n#### Django and PostgreSQL\n\nYou first need to have [PostgreSQL](https://www.postgresql.org/download/) installed and running, and create a user and a database. Afterwards, create `./server/.env` file to store your database information along with some Django settings. It should have values for all the following keys:\n\n##### `./server/.env` file\n\n```python\nSECRET_KEY = \u003cYOUR_DJANGO_SECRET_KEY\u003e\nDEBUG = True  # set to False in production\nDB_NAME = \u003cYOUR_DB_NAME\u003e\nDB_USER = \u003cYOUR_USER_NAME\u003e\nDB_PASSWORD = \u003cYOUR_USER_PASSWORD\u003e\nDB_HOST = localhost  # set to your domain name in production\nDB_PORT = 5432  # default postgreSQL port\n```\n\n#### Poetry\n\nIn addition to the database, you need to setup the Python environment. We use [poetry](https://python-poetry.org/docs/#installation) for dependency management, so poetry needs to be installed first. Once installed, in the project folder,\n\n```bash\n$ poetry shell  # this should create a virtualenv for you at .venv and start using it\n$ poetry install\n$ cd server\n$ python manage.py migrate  # make sure your selected Python interpreter is the one in .venv\n$ python manage.py runserver\n```\n\u003e **Note**\n\u003e Once the server is running, you can go to localhost:8000/customer/ and localhost:8000/customer/create to play around with the example API GET and POST requests.\n\n\u003e **Note**\n\u003e If you add customers at localhost:8000/customer/create, you should see the customer information shown on the frontend at localhost:3000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinshen56714%2Fcreate-react-django-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinshen56714%2Fcreate-react-django-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinshen56714%2Fcreate-react-django-app/lists"}