Perfect! It works like a charm! You saved me so much time, thanks! NOTE! : I had an issue with the GET requests but i replaced "user.json()" with "user.toJson()"
Find Francesco: francescociulla.com 0:00 Intro. Architecture and project setup. Dependencies in requirements.txt 2:40 app file: Flask app, SQLAlchemy app, Model, test route 6:15: routes and CRUD controllers: Create, Read, Update, Delete 12:04 Dockerize the Flask application. Dockerfile 14:08 docker-compose.yml: flask app and Postgres services 18:00 Test Postgres container. test with Tableplus 19:45 Build the image (debug) and run the app service. Test endpoints 23:53 Bug fixing. Final test
A 29-minute video took me two days of study because I had never configured Docker on WSL before. I needed to learn the basics of Flask, Docker, and Postgres to successfully follow the tutorial. The content was amazing, and I managed to complete everything, although with some modifications. The assistance from ChatGPT was crucial in understanding concepts and commands, making the process more easier. Ty boss
@@francescociulla You know but you didn’t use it to figure out the internal error, it would be a good addition to use it in your video. Keep going my friend
@@zaki9815 hey man can you help me out with this issue: whenever i run docker compose up --build flask_app" or docker compose up flask_db" i get the error as:o configuration file provided: not found
When I run "docker compose up --build flask_app" I received the message: RuntimeError: Working outside of application context. This typically means that you attempted to use functionality that needed the current application. To solve this, set up an application context with app.app_context(). See the documentation for more information. Any suggestions to resolve this? Sorry, I'm beginner
I had the same problem; for me it was because I changed the version from Dockerfile from `python:3.6-slim-buster` to `python:3.8` or even `python:3.10`
API's all the endpoints are working fine, After containerizing it using docker the Database is created as per Table Plus. Test endpoint of the application is working fine. But I am getting error that no table exists. I tried multiple solutions from internet and chatgpt. Please help
@@francescociulla yes i got it , thank you , but other question if I want to use docker to set an application hosting automation platform developed under Framework (python or PHP) how can I process , like what are the steps ?
Docker Compose w/ PostgreSQL - psql Password Authentication failed - This is the error I got, after breaking my head for some two days I realised that I just had to stop the local postgres service to free the port. Once I did that, the error disappeard.
@@susmitadey6735 you should have it as soon as you run the flask app. do you get the list of empty users? did you try to just clone the repo and spin up the services?
@@francescociulla I got the list of empty users after running the flask app. I didn't tried to clone the repo. I tried to code along with you in the video.
Why i can't connect to db in postgres, i get this error from table plus: connection to server at "localhost" (::1), port 5432 failed: FATAL: la autentificaci�n password fall� para el usuario �postgres� I did everything the same until I reached the command: docker compose up -d flask_db help please.
@@francescociulla I had to change the port in docker compose, i don't know why with "5432:5432" does not work ports: - "5433:5432" (that's how it works) thankU, nice tutorial