{"id":26586676,"url":"https://github.com/orlyohreally/django-rest-api-angular-boilerplate","last_synced_at":"2026-04-15T14:03:43.084Z","repository":{"id":38672258,"uuid":"214683507","full_name":"orlyohreally/django-rest-api-angular-boilerplate","owner":"orlyohreally","description":"Boilerplate for Django Rest API Angular project","archived":false,"fork":false,"pushed_at":"2023-01-07T10:38:16.000Z","size":2062,"stargazers_count":0,"open_issues_count":29,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T11:31:24.253Z","etag":null,"topics":["angular-material","angular8","django-rest-framework","heroku","rest-api"],"latest_commit_sha":null,"homepage":"https://angular-django-boilerplate.herokuapp.com","language":"TypeScript","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/orlyohreally.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}},"created_at":"2019-10-12T17:01:19.000Z","updated_at":"2019-10-15T18:17:20.000Z","dependencies_parsed_at":"2023-02-06T22:46:07.007Z","dependency_job_id":null,"html_url":"https://github.com/orlyohreally/django-rest-api-angular-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/orlyohreally/django-rest-api-angular-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlyohreally%2Fdjango-rest-api-angular-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlyohreally%2Fdjango-rest-api-angular-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlyohreally%2Fdjango-rest-api-angular-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlyohreally%2Fdjango-rest-api-angular-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orlyohreally","download_url":"https://codeload.github.com/orlyohreally/django-rest-api-angular-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlyohreally%2Fdjango-rest-api-angular-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262056166,"owners_count":23251614,"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":["angular-material","angular8","django-rest-framework","heroku","rest-api"],"created_at":"2025-03-23T11:27:43.613Z","updated_at":"2026-04-15T14:03:38.050Z","avatar_url":"https://github.com/orlyohreally.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Rest API Angular Boilerplate\n\nBoilerplate for app with Django Rest API in backend and Angular in frontend.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development.\n\n### Installing\n\nCreate virtual environment named env\n\n```\npython -m venv env\n```\n\nActivate created environment\n\n```\n# On Windows in command line\nenv/Scripts/activate\n\n# In VSCode (Windows)\nsource env/Scripts/activate\n```\n\nClone project\n\n```\ncd env\ngit clone https://github.com/orlyohreally/django-rest-api-angular-boilerplate.git\ncd django-rest-api-angular-boilerplate\n```\n\nInstall dependencies for backend\n\n```\npip install -r restApiApp/requirements.txt\n```\n\nInstall dependencies for frontend and build the project for backend at the same time\n\n```\ncd theme-customization\nnpm install\n```\n\nAs a result all npm packages will be installed for angular project and in backend a static folder (restApiApp/static) will be create with built angular project files\n\nSet up db for backend\n\n```\ncd ../restApiApp\npython manage.py makemigrations\npython manage.py migrate\n```\n\nCreate admin to login into admin page\n\n```\npython manage.py createsuperuser\n```\n\n## Running the app\n\n```\ncd /restApiApp\npython manage.py runserver\n```\n\nThe project will be available at http://127.0.0.1:8000/.\n\n## Deployment\n\nProject has files prepared to deploy on [Heroku](https://www.heroku.com/platform).\n\n## Prepare already existing Angular project for this boilerplate\n\nReplace default Angular project with your own\n\nUpdate postinstall command in package.json file for the boilerplate\n\n```\n\"postinstall\": \"npm install --prefix [folder name of your frontend project]\"\n```\n\nUpdate build path depending on Angular version\n\n- .angular-cli.json `\"outDir\": \"../restApiApp/static/blog/\"`\n- angular.json - `\"outputPath\": \"../restApiApp/static/blog/\"`\n\nAdd postinstall script to package.json file\n\n```\n\"postinstall\": \"ng build --prod --deploy-url /static/blog/ --output-hashing none\"\n```\n\nRun command to update static files for backend\n\n```\nnpm run postinstall\n```\n\nUpdate restApiApp/templates/index file so it would load needed scripts for your Angular version. Look at restApiApp/static/blog/index.html for the list of needed scripts.\n\nAssets such as images won't work when angular project has been replaced. In Angular projects all images usually have either external source or they reference assets folder. Django project will store all the static files for frontend in static/blog folder. To solve this issue create environment variable which would store location of static files. This was done in default frontend project of this boildreplate.\n\n## Built With\n\n- [Django REST framework](https://www.django-rest-framework.org/) - framework used for backend\n- [Angular](https://angular.io/) - framework used for frontend\n\n## Authors\n\n- **Orly Knop** - [orlyohreally](https://github.com/orlyohreally)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forlyohreally%2Fdjango-rest-api-angular-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forlyohreally%2Fdjango-rest-api-angular-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forlyohreally%2Fdjango-rest-api-angular-boilerplate/lists"}