|
|
|
Ask HN: How to develop React+Flask locally in a way that can easily be deployed?
|
|
9 points
by RSchaeffer
1455 days ago
|
|
I'm a newcomer to fullstack development with no experience in infra. I want to make a web app based on a React frontend and Flask backend (with a Postgres database). What are people's recommendations for developing locally, in a way that can be easily & immediately deployed? A lot of the tutorials I can find either (a) don't mention deployment, or (b) treat it like a final step at the end, rather than something that needs to be done on a semi-frequent basis. |
|
You can use Vagrant or Docker[1] locally and then deploy somewhere easy like Render.com[2][3].
Since you're new to fullstack, you may have an easier time with Next.js (definitely use the TypeScript option) because then you're only learning/using a single language in a single repository for both frontend and backend.
1. https://blog.miguelgrinberg.com/post/how-to-dockerize-a-reac...
2. https://render.com/docs/deploy-flask
3. https://render.com/docs/deploy-create-react-app