Deploy a Vue frontend WITH a Flask backend.
- You want to run more complex server-side business logics.
- You want to connect to a database.
- The package you are relying on are Python-based.
- You need an authentication backend.
This guide is specifically for when you want to run both backend and frontend as 1 single service. This is useful for services like Heroku's Dyno or DigitalOcean's App Platform where it would cost twice as much to have both a front-end and a back-end service.
- We have Nuxt, which can run server-side logic and authentication.
- You can also run ExpressJS and do the MEVN stack instead.
Run the following line to compile and build the frontend application
$ make build
This will create a folder dist
on the root directory.
We can then deploy the application as a Python Flask application, ultimately calling the service TODO: