{"id":20455361,"url":"https://github.com/alexmhack/django-angular-blog","last_synced_at":"2025-03-05T10:21:08.242Z","repository":{"id":38810704,"uuid":"155257097","full_name":"Alexmhack/Django-Angular-Blog","owner":"Alexmhack","description":"Tutorial on django2 backend and angular6 frontend blog webapp and delpoying on heroku","archived":false,"fork":false,"pushed_at":"2023-01-04T16:30:59.000Z","size":2671,"stargazers_count":1,"open_issues_count":32,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T18:45:04.482Z","etag":null,"topics":["angular6","django2"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Alexmhack.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}},"created_at":"2018-10-29T17:58:51.000Z","updated_at":"2023-08-27T01:35:41.000Z","dependencies_parsed_at":"2022-09-18T11:20:58.170Z","dependency_job_id":null,"html_url":"https://github.com/Alexmhack/Django-Angular-Blog","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/Alexmhack%2FDjango-Angular-Blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alexmhack%2FDjango-Angular-Blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alexmhack%2FDjango-Angular-Blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alexmhack%2FDjango-Angular-Blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alexmhack","download_url":"https://codeload.github.com/Alexmhack/Django-Angular-Blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242006161,"owners_count":20056515,"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":["angular6","django2"],"created_at":"2024-11-15T11:18:39.617Z","updated_at":"2025-03-05T10:21:08.214Z","avatar_url":"https://github.com/Alexmhack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django-Angular-Blog\nTutorial on django2 backend and angular6 frontend blog webapp and delpoying on heroku\n\n**This Repository contains Django as backend and Angular as frontend together in a blog web application including a custom django user model and serving the angular directly from django views and finally deploying the project to [Heroku](https://www.google.com/url?sa=t\u0026rct=j\u0026q=\u0026esrc=s\u0026source=web\u0026cd=1\u0026cad=rja\u0026uact=8\u0026ved=2ahUKEwjvmr6qsa3eAhUJ148KHSN2D-MQFjAAegQIARAC\u0026url=https%3A%2F%2Fwww.heroku.com%2F\u0026usg=AOvVaw1V4lhSv6mb_lZj6UUCUXpS)**\n\n## Initial Setup\n\n1. Create virtualenv by directly installing the packages using [pipenv](https://www.google.com/url?sa=t\u0026rct=j\u0026q=\u0026esrc=s\u0026source=web\u0026cd=1\u0026cad=rja\u0026uact=8\u0026ved=2ahUKEwj8s_GIsK3eAhXDRY8KHRBnDrUQFjAAegQIBxAB\u0026url=https%3A%2F%2Fpipenv.readthedocs.io%2F\u0026usg=AOvVaw05wG9pN4CIwQzTMOYs-vQ2)\n\t```\n\tpipenv install django djangorestframework djangorestframework-jwt python-decouple\n\t```\n\n2. Activate the virtualenv using **(run the next commands in activated virtualenv)**\n\t```\n\tpipenv shell\n\t```\n\n3. Start django Project\n\t```\n\tdjango-admin startproject backend .\n\t```\n\t**trailing dot at end tell django to create files in the current folder**\n\n4. Create apps for django\n\t```\n\tpython manage.py startapp accounts\n\tpython manage.py startapp blogs\n\t```\n\n5. Add apps in **backend/settings.py** ```INSTALLED_APPS``` list\n\t\n```\nINSTALLED_APPS = [\t\n    # django apps\n    'accounts',\n    'blogs',\n    # django packages\n    'rest_framework',\n]\n```\n\nConfigure django rest framework and rest framework JWT authentication by adding \n\n```\nREST_FRAMEWORK = {\n    'DEFAULT_PERMISSION_CLASSES': (\n        'rest_framework.permissions.IsAuthenticated',\n    ),\n    'DEFAULT_AUTHENTICATION_CLASSES': (\n        'rest_framework_jwt.authentication.JSONWebTokenAuthentication',\n        'rest_framework.authentication.SessionAuthentication',\n        'rest_framework.authentication.BasicAuthentication',\n    ),\n}\n```\n\n6. I assume that you have NodeJS and Angular CLI already installed on your local machine\n\t```\n\t```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmhack%2Fdjango-angular-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexmhack%2Fdjango-angular-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmhack%2Fdjango-angular-blog/lists"}