{"id":18725875,"url":"https://github.com/homescriptone/djangoroutify","last_synced_at":"2025-11-11T19:30:19.757Z","repository":{"id":225867571,"uuid":"767062860","full_name":"homescriptone/djangoroutify","owner":"homescriptone","description":"A mix of Django and Routify","archived":false,"fork":false,"pushed_at":"2024-03-13T17:49:57.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T15:13:03.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/homescriptone.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-04T16:30:25.000Z","updated_at":"2024-03-04T16:32:56.000Z","dependencies_parsed_at":"2024-11-07T14:12:30.198Z","dependency_job_id":"6b0f891d-0ec9-42e7-b973-a4e391d9975d","html_url":"https://github.com/homescriptone/djangoroutify","commit_stats":null,"previous_names":["homescriptone/djangoroutify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fdjangoroutify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fdjangoroutify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fdjangoroutify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fdjangoroutify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/homescriptone","download_url":"https://codeload.github.com/homescriptone/djangoroutify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239592974,"owners_count":19664855,"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":[],"created_at":"2024-11-07T14:12:23.733Z","updated_at":"2025-11-11T19:30:19.716Z","avatar_url":"https://github.com/homescriptone.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DjangoRoutify : A mix of Django, Routify, Svelte and Vite\n\nThe initial goal for this project is to build a django app  using Svelte technology, that can be used to build easily production-ready apps.\n\n \nInstall Python dependencies using this command :\n   \n\n     pip install -r requirement.txt\n     \nInstall NPM dependencies for the project :\n\n    yarn install \n    or \n    npm install\n  \nThe project architecture is the following : \n\n\t - assets : Folder where the source file will be located\n\t - -  src : \n\t - - - pages : Folder where svelte pages will be loaded from by Routify\n\t - - - - routes : Folder where generated routes for Routify\n\t - - App.svelte : main entrypoint for Routify\n\t - - main.js : main.js file entrypoint\n\t - core : Django configuration files ( wsgi, settings.py, other ... )\n\t - dist : Routify temporary output dist folder\n\t - - client : Client\n\t - - server : Server\n\t - static : Folder where the assets CSS|JS will be stored\n\t - web : custom django app\n\t - vite.config.js : Vite configuration for routify\n\n\nIf you are in development mode, please change in the core/settings.py file the line where the constant **DEBUG** is defined : \n\n    DEBUG = True\nIf you want to run for production, change the **DEBUG** to : \n\n    DEBUG = False\n\n\nTo run the dev mode, run the command : \n\n    npm run dev\n  or \n\n    yarn run dev\n\nWhen running the app in development mode, the index.html used is coming from **web/templates/base.html** : \n\n````html\n{% load django_vite %} Load django vite binary into the page\n\n\u003c!DOCTYPE  html\u003e\n\n\u003chtml  lang=\"en\"\u003e\n\n\u003chead\u003e\n\n\u003cmeta  charset=\"UTF-8\"\u003e\n\n\u003cmeta  name=\"viewport\"  content=\"width=device-width, initial-scale=1.0\"\u003e\n\n\u003ctitle\u003eDocument\u003c/title\u003e\n\n{% vite_hmr_client %}  Load vite HMR files and deps\n\n  \n\n{% if debug %}\nIn debug mode, the manifest_json generated into static/dist/manifest.json reference this path as the entry point for routify.\n\n{% vite_asset '.src/main.js' %}\n\n{% else %}\nIn production mode, the manifest_json generated into static/dist/manifest.json reference this path as the entry point for routify.\n\n{% vite_asset '.routify/render.js' %}\n\n{% endif %}\n\n\u003c/head\u003e\n\n\u003cbody\u003e\n\n\u003c/body\u003e\n\n\u003c/html\u003e\n\n````\nIn order to build for dev, you'll need to open two terminal windows. One to run Routify in dev mode and another for django server\n\n    npm run dev\n\n    python manage.py runserver\n\nIn order to build for production : \n\n    npm run build\n\n    python manage.py collectstatic\n    \n    python manage.py runserver\n    \n\nLearn more about Django here : https://www.djangoproject.com/  \nLearn more about Django_Vite here : https://github.com/MrBin99/django-vite  \nLearn more about Routify here : https://routify.dev/docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomescriptone%2Fdjangoroutify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomescriptone%2Fdjangoroutify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomescriptone%2Fdjangoroutify/lists"}