Full Stack Flask, React, and Postgres, pt. 1

  Рет қаралды 37,835

Chris DeSilva

Chris DeSilva

Күн бұрын

Пікірлер: 46
@sergiocanas383
@sergiocanas383 Жыл бұрын
Finally found a course that talks about all three and not just React and flask. Thank you
@tejasgopal6101
@tejasgopal6101 Жыл бұрын
Great video man! You're video was done smartly and concisely, I really appreciate it!
@djthedev
@djthedev 2 жыл бұрын
This is the best tutorial I've found on this topic. Thanks so much Chris!
@timothyatanda1188
@timothyatanda1188 9 ай бұрын
Please help me, have you tried the code steps on your own?🤦‍♂🙏
@cryswerton-silva
@cryswerton-silva 2 жыл бұрын
Thanks for the video and please keep up with the good work!
@jackpeterson541
@jackpeterson541 2 жыл бұрын
why you didn't use json dump(dumps) instead define format_event function?
@iFunktion
@iFunktion Жыл бұрын
I really don't understand how you are doing this without getting errors, I am now getting :RuntimeError: Working outside of application context. How do you get round all of this?
@giantqtipz6577
@giantqtipz6577 2 жыл бұрын
subscribed. I went to fullstack javascript bootcamp, and used sequelize for database. But just got a job that uses JS, Python, and SQL. This is the course I need to get up to speed. Saving this to follow along later. Thanks!
@iFunktion
@iFunktion Жыл бұрын
Hi, I'm getting and error: RuntimeError: Either 'SQLALCHEMY_DATABASE_URI' or 'SQLALCHEMY_BINDS' must be set. How do you get past this?
@bigmack13
@bigmack13 8 ай бұрын
Did you ever sort this out
@sagharsahebi5236
@sagharsahebi5236 7 ай бұрын
Did you figure it out?@@bigmack13
@jhunelpenaflorida1768
@jhunelpenaflorida1768 10 ай бұрын
There had an error, but was able to solve by using postgresql:// instead of postgres://. Thank you.
@Pedro-zj3fs
@Pedro-zj3fs 2 жыл бұрын
Good video, but i think that middleware and backend is together, is a good option to pull apart the backend from middlware, for microservices, for example :)
@speedbump164
@speedbump164 2 жыл бұрын
yeah, this was a great video and a huge help. you earned a like and a sub my friend
@iFunktion
@iFunktion Жыл бұрын
How did anyone get this to work, tables won't create, error messages everywhere, this is a nightmare for a beginner tutorial
@ChrisDeSilva
@ChrisDeSilva Жыл бұрын
Sounds frustrating. Hard to tell from the error messages alone without any other context. If you're just starting out, it's a great opportunity to lean on documentation. Check the Flask docs, search Stack Overflow for similar error messages, etc. It usually ends up being a small detail that got missed somewhere along the way. Super easy to do when following along with tutorials.
@lbb2rfarangkiinok
@lbb2rfarangkiinok 2 жыл бұрын
Super cute project idea :)
@lbb2rfarangkiinok
@lbb2rfarangkiinok 2 жыл бұрын
Also, it worked! I ended up using it for a database of my daughter's stuffed animals with images of each, and it's fantastic. All that's left is some bootstrapping and the manual labor of matching the photos.
@uykerrykaberga
@uykerrykaberga 2 жыл бұрын
great video
@SophieWillson-qu3gu
@SophieWillson-qu3gu Жыл бұрын
This is great, I'm having an issue with my model where the 'id' and 'created_at' default value are returning "null" - when I print "event" from the formatter method it just logs my description
@deivide5374
@deivide5374 2 жыл бұрын
can you show us how to deploy into AWS, Azure, DigitalOcean... or where ever? been having a hard time... getting front to talk to back correctly... even after building for production. Thank you
@PilotLu
@PilotLu 2 жыл бұрын
Great set of videos Chris...thanks! What theme are you using in vscode?
@ChrisDeSilva
@ChrisDeSilva 2 жыл бұрын
Synthwave '84
@sebastientroszczynski5371
@sebastientroszczynski5371 2 жыл бұрын
Hi Chris, Thanks for your video, so cool. In your point of view, what is the best way to pass more than one value from the front to the back end . Like I would like to filter a table on multiple values. Thank you
@jonathanpinto2399
@jonathanpinto2399 Жыл бұрын
just use q object in flask
@manasahr430
@manasahr430 Жыл бұрын
could you please make a video on flask backend ,react frontend ,microsoft sql server database (stored procedure data )
@vijeandran
@vijeandran 2 жыл бұрын
HI, Instead of printing all the columns in GET request, How could I get only specific columns from the postgres table?
@ChrisDeSilva
@ChrisDeSilva 2 жыл бұрын
You'd just do SELECT {COLUMN_NAME_1}, {COLUMN_NAME_2} from TABLE instead of SELECT * from TABLE
@wtf1379
@wtf1379 2 жыл бұрын
I'm sorry maybe I'm not understanding something but what is the purpose of having both sqlalchemy and psycopg2? Sqlalchemy by itself is perfectly able to handle a postgress db.
@ChrisDeSilva
@ChrisDeSilva 2 жыл бұрын
This SO thread might help clear things up a bit: stackoverflow.com/questions/8588126/sqlalchemy-or-psycopg2
@aldelta19
@aldelta19 Жыл бұрын
When you start working with these tools, the other stuff seems silly... Unless you're working for an enterprise, I guess.
@MattVibes
@MattVibes 2 жыл бұрын
So you’re keeping the baby in the parent directory? 🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣
@shikhxr24
@shikhxr24 Жыл бұрын
While giving the db.create_all() for creating the 'event' table, I'm getting "Runtime error: Working outside of application context" The way to resolve this is using 'application context' . I went through the documentation but couldn't figure out how the code would look like for this. Please let me know if you could.
@ChrisDeSilva
@ChrisDeSilva Жыл бұрын
Without seeing the code you've got set up, this looks like it might point you in the right direction based on that error: flask.palletsprojects.com/en/2.3.x/appcontext/
@agreen254
@agreen254 Жыл бұрын
You have to nest the db.create_all() inside a context block: with app.app_context(): db.create_all() Also make sure you declare the Event class before running create_all or it won't register in the database. I have no idea why it worked for him in the python shell without adding the context block. Probably something to do with the deprecation warnings, considering the video is almost 2 years old now. Still a good tutorial that helped me with ORMS!
@theclueless11212
@theclueless11212 Жыл бұрын
When I run POST and GET requests at localhost:5000/events, I get a 401 Unauthorized error. any ideas why?
@ChrisDeSilva
@ChrisDeSilva Жыл бұрын
Tricky to diagnose without a bit more detail but are you seeing any other error messages in the console. First thing that comes to mind is that you may have a CORS issue and may have simply missed that part of the setup. Happy to try to help troubleshoot further if you have more details/questions.
@timothyatanda1188
@timothyatanda1188 9 ай бұрын
This is a great tutorial i must be sincere, but many of found it hard to setup Python with VS code powershell, you shouls have started from how you create your folders😭
@joeniati7903
@joeniati7903 Жыл бұрын
what commands should i runto start the project
@joeniati7903
@joeniati7903 Жыл бұрын
does this use any kind of JWT token?
@joeniati7903
@joeniati7903 Жыл бұрын
or any kind of tokens?
@joeniati7903
@joeniati7903 Жыл бұрын
This project will not start for me properly
@techany671
@techany671 11 ай бұрын
Githhub link?
@captainwalter
@captainwalter 2 жыл бұрын
whats your font and theme?
@ChrisDeSilva
@ChrisDeSilva 2 жыл бұрын
Victor Mono and Synthwave '84
@captainwalter
@captainwalter 2 жыл бұрын
@@ChrisDeSilva thank you sir!
Full Stack Flask, React, and Postgres, pt  2
43:20
Chris DeSilva
Рет қаралды 14 М.
SQLAlchemy: The BEST SQL Database Library in Python
16:39
ArjanCodes
Рет қаралды 70 М.
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
Worst flight ever
00:55
Adam W
Рет қаралды 18 МЛН
REST API With Flask & SQL Alchemy
35:25
Traversy Media
Рет қаралды 297 М.
How to build a React + FastAPI application (Full Stack Guide)
51:07
Build your first REST API with Flask and PostgreSQL
27:42
teclado
Рет қаралды 67 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 195 М.
Authentication in React app using Flask Server-Sided Sessions
54:12
Python + JavaScript - Full Stack App Tutorial
1:29:25
Tech With Tim
Рет қаралды 210 М.
Build a Rest Api with NodeJS (JavaScript), Express, and PostgreSQL
1:07:53
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17