Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Containerize The Applications #2

Open
anitsh opened this issue Feb 20, 2021 · 2 comments
Open

Containerize The Applications #2

anitsh opened this issue Feb 20, 2021 · 2 comments

Comments

@anitsh
Copy link

anitsh commented Feb 20, 2021

I'm pretty much sure the Backend and Frontend are two separate standalone applications.

I have not had the change to view the code bases and run the application on my local but what I would love do is to be able to run it in an containerized setup so that I would not have to go through the hell of dependency management.

Containerized application has a lot of benefits as It would also help the users to test the application faster.

@samul-1
Copy link
Owner

samul-1 commented Feb 20, 2021

The backend and frontend apps are tied together by django webpack loader; they aren't totally separated, per se. What happens is vue components are actually placed inside of django templates and props are passed via the django context.

It might be an unorthodox solution, but I didn't feel like going for a full SPA for this and still use some of the django templates' functionalities.

I don't have a ton of experince with deploying apps that use webpack or standalone vue projects though, so it's definitely something I need to get better at. I have never used Docker either, but it's on my list of things I want to learn. If you have any tips regarding that, I'm happy to listen :)

@anitsh
Copy link
Author

anitsh commented Feb 20, 2021

https://github.com/PythonCheatsheet/docker-django

I think it would be better if you move to separate concerns of Frontend and Backend now because this is the start and it will not be hard to do it.

Vue and Django are two different universes. Seperation of concerns now will help you understand more about those dimensions and where you will want to focus your career ahead. Fullstack is something I do not prefer to see for a starter. That should either be Backend or Frontend as there is lot to learn in both areas and take some time to gain understanding.

The monolith you are creating might go out of control if you do not tame it. It's OK to have them running in one process but why make debugging hard and just follow the norm, Vue be Vue and Python handle the backend. You'll learn more!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants