separate frontend and backend #15
Replies: 4 comments 8 replies
-
I don't know what Quasar is but you can run Django as a back-end using this project, it's already set up to run a Django app using gunicorn. It being an API driven app or not is a choice you make as the developer of the app. If you want to use a customized front-end that depends on running something that's not esbuild then you can replace esbuild with whatever tool you want to use by switching 1 container but Vue and esbuild go well together. If that also means ripping out Django's templating engine that's also another choice that's done at the app level, it's doable if that's the style you want to build your apps. |
Beta Was this translation helpful? Give feedback.
-
does this look about right? (in terms of Dockerfile / docker-compose.yml) https://github.com/wiktorcie/docker-django-example/commit/1c999b6874aa6c587abf9bff73dd7851f28d8ef2 |
Beta Was this translation helpful? Give feedback.
-
Ok so I modified the Dockerfile to build quasar SPA artifacts in assets image. I'm trying to come up with good base for quasar + django starter project. I will share it to quasar community once it's good enough. |
Beta Was this translation helpful? Give feedback.
-
ok I managed to get it working for prod and dev enviroments. Whole thing didn't required many changes, but it got me scratching my head for few days. I think it's simple enough now. prod env:
dev env:
https://github.com/wiktorcie/docker-django-example/commit/3321a7688753ddbe6113f80ddd08a34c599194e5 Unfortunately I've broken django index page, but it shouldn't matter as admin page works fine with all the styles. Thanks Nick! |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was assessing this stack for my needs, but found that it's not going to fit it.
What I was looking for was something that lets me run django/flask as backend/api.
And completely separate frontend set up with https://quasar.dev
Why don't integrate into this?
Quasar can be integrated, but only in progressive (UMD) manner. It means a lot of the features provided by quasar-cli won't be available.
https://quasar.dev/start/pick-quasar-flavour
I found something more fitting here https://github.com/masterdubs/djengu
I love your docker-compose examples, they are super high quality and you sharing them is just amazing, thanks for great work.
Just an idea to throw around here, hoping I can provide some valuable info.
Beta Was this translation helpful? Give feedback.
All reactions