#100DaysOfCode in Python Transcripts
Chapter: Days 85-87: Fullstack web apps made easy
Lecture: Your turn: Day 2
Login or purchase this course to watch this video and the rest of the course contents.
0:00 Day 2, on the second day it's all about data. So what we're going to do is going to create a data table service, so just go to the services and say +,
0:09 choose data tables, and then this thing down here will pop up like this. Create as many tables as you need up here,
0:15 define their schema, and you can even enter down here some starter data. For example, if it's something that's
0:21 kind of static or you just want a little data to start with. That's great, remember no access from forms, access from the server modules.
0:28 Once you have that you're going to need a way to get that data down to your application so go ahead and add a server module
0:34 and then define the functions that you're going to need to send the data down. You can look in the demo code
0:40 that I put in this repository in this particular day if you want to see how we did the queries there. It's pretty easy because they basically have
0:48 a commented section when you create a new server module that shows you both how to use it on the client and how to define it on the server,
0:54 so just follow along what they have in the comments. Once you've got that going, that's Day 2. You might want to just call those
0:59 functions from your main form as a little test just to see that they're working and then throw those away,
1:04 but that's what you did today, it's all about the data.