Coding a new full stack project - setting up the database | devlog #1

  Рет қаралды 11,934

Josean Martinez

Josean Martinez

Күн бұрын

This is the first video in my new series documenting the process of building a real life full stack project from the ground up. In this video, I'm setting up a postgres database for this project with supabase and drizzle. I hope you enjoy it!
💻 Source Code: github.com/josean-dev/sveltek...
✍🏽 My Blog: www.josean.com/
📧 Stay up to date with me and the project: buttondown.email/josean
☕️ Help Support Me And The Channel: www.buymeacoffee.com/joseanma...
✨ My Wallpaper Pack: bit.ly/49pC13Q
🛠️⌨️ Visit the SplitType Shop To Build A Corne: splittype.com
🎥 How to build a Corne keyboard: • How To Build A Corne K...
-----
⌨️ Corne Keyboard Parts
1. Cherry MX Corne V3 Kit:
- Partially Assembled Kit: bit.ly/3wPLofX
- Regular Kit: bit.ly/3PicaE5
2. Elite-C Microcontroller:
- Little Keyboards: bit.ly/48Q9CDR
- Keebio: bit.ly/3Pm9lBJ
3. Low Profile Sockets & Mill-Max Pins: bit.ly/3TePp4V
4. 128x32 Oled Screens: bit.ly/3TdjZMf
5. Corne Keyboard Case: bit.ly/48W6bLP or etsy.me/4ca7fPc
6. Corne Display Covers: bit.ly/48QgkJW
7. Switches & Keycaps: bit.ly/3Vbvrus
8. TRRS Cable: amzn.to/3PjyfBX
⏰ Timestamps
00:00 - Introduction
01:12 - Schema design
02:05 - Setting up supabase
02:42 - Install dependencies
02:54 - Code models/schema
06:01 - Drizzle config
07:11 - Generate migration
08:30 - Defining the db client
09:29 - Running the migration
12:36 - Seeding the database
17:36 - Commit changes
18:13 - Conclusion

Пікірлер: 39
@StoneColdET_
@StoneColdET_ 2 ай бұрын
Love your videos Josean, really leaned on your content to help build my programming setup (Mac with Yabai and a split keyboard). Your content is interesting and intuitive, always glad to see one of your videos pop up in my feed. Dev Vlog is a great idea, hope to see more in the future!
@joseanmartinez
@joseanmartinez 2 ай бұрын
Thank you! That means a lot!
@nicohussein2635
@nicohussein2635 2 ай бұрын
Thank you very much for this content, it's highly appreciated 🙌. Keep pushing 🚀
@joseanmartinez
@joseanmartinez 2 ай бұрын
Thank you!
@OmarElbaga
@OmarElbaga 2 ай бұрын
So glad to see your content again! I always come back to the vim and iterm2 setup videos :)
@joseanmartinez
@joseanmartinez 2 ай бұрын
Happy to hear that, thank you!
@kayglifts
@kayglifts 2 ай бұрын
Love your videos, Josean!
@joseanmartinez
@joseanmartinez 2 ай бұрын
Thanks!!
@EmmanuelOloyede
@EmmanuelOloyede Ай бұрын
Amazing! ❤
@ordinarygg
@ordinarygg Ай бұрын
Great series, would be interesting to see how it will evolve after year or two)
@EmmanuelOloyede
@EmmanuelOloyede Ай бұрын
Sure. I'll be expecting the next one 😊
@sergendoua8186
@sergendoua8186 2 ай бұрын
your are awesome 😇😇😇, love the workflow learn a lot watching your vim video. thanks for sharing this.🙏
@joseanmartinez
@joseanmartinez 2 ай бұрын
Thanks!!
@alexisortizojeda809
@alexisortizojeda809 2 ай бұрын
Just came across your channel. Good luck on the project, keep them coming!
@joseanmartinez
@joseanmartinez 2 ай бұрын
Thank you!
@alfredooviedo9410
@alfredooviedo9410 2 ай бұрын
Lesgooooooo
@ccfvhh6588
@ccfvhh6588 2 ай бұрын
Thanks for your effort, love your videos! What type of paid courses are you planning to offer? Would be really interested in that
@joseanmartinez
@joseanmartinez 2 ай бұрын
Really appreciate it! I’m thinking of doing stuff related to Neovim and working on the terminal as well as web development
@mrqwenty
@mrqwenty 2 ай бұрын
great video! So what's the name of the program you using to draw the schema?
@joseanmartinez
@joseanmartinez 2 ай бұрын
I used lucidchart in the video!
@alii2284
@alii2284 2 ай бұрын
Hey 🙋🏼‍♂️ so you use supabase for a database on the cloud as an alternative for firebase and you use drizzle to model the relational db into an object in your code? Also are you using javascript for this project? I’m a biginner so ik this might sound stupid Edit: another question: why won’t we just download a postgres db like mysql or compass? Are you using postgres on supabass incase another project member wants to access the database?
@joseanmartinez
@joseanmartinez 2 ай бұрын
Hey! Thanks for the question! So yes, for this project, I’m planning on using supabase to manage and run a postgres database for me. I could use any another postgres service, but I like the supabase option and their connection pooler is something I’ll need for a “serverless”project like this one which I’m planning to host on Vercel. Supabase has its own database client that you can use instead of drizzle and its what I would recommend if you’re gonna be using their built in auth system. I’m pretty comfortable with working on the backend and prefer using an ORM like drizzle or prisma to manage the schema and migrations for the database as well as define all of the objects for these tables in the code as well as you’ve pointed out. Because I’m using an ORM like this though, I’m probably gonna be setting up another solution for auth instead of what is built into supabase. Basically, supabase is only acting as my db provider for this specific project. And I’m using typescript for the project which is just a superset of javascript which allows the addition of types to the language. Hope that helps!
@erickvasquez5652
@erickvasquez5652 2 ай бұрын
Is awesome how you do the auto imports in vim!
@joseanmartinez
@joseanmartinez 2 ай бұрын
Thanks! It’s a combo of using nvim-cmp completion paired with my lsp setup. Here’s my full guide on setting up Neovim if you’re interested: kzbin.info/www/bejne/bKGkeGZ4fdqlmq8
@dmitrykaa46
@dmitrykaa46 Ай бұрын
It is nice to see your real vim workflow!
@ucsdbrandon2025
@ucsdbrandon2025 Ай бұрын
When will the next eposide be posted?
@jjaimealeman
@jjaimealeman Ай бұрын
Kinda surprised to see you NOT use 'pnpm'. Any reason?
@cassiorsfreitas
@cassiorsfreitas 2 ай бұрын
Hey, quick question, how did you open a file in the right buffer from telescope directly?
@joseanmartinez
@joseanmartinez 2 ай бұрын
Hey! How I do it is that I navigate to the split I want telescope to open the file in before opening up telescope
@cassiorsfreitas
@cassiorsfreitas 2 ай бұрын
Oh you did that so fast I didn't even notice. Thanks@@joseanmartinez I appreciate that!
@jsjunior
@jsjunior 2 ай бұрын
What do you use app for Schema design?
@rheaastons1658
@rheaastons1658 2 ай бұрын
looks like Lucidchart
@joseanmartinez
@joseanmartinez 2 ай бұрын
I used lucidchart in this video!
@a7kerkh
@a7kerkh 2 ай бұрын
All things you did in the video are using only postgres, supabase just for auth and file upload is so heavy
@joseanmartinez
@joseanmartinez 2 ай бұрын
I’m actually planning on using supabase only for the postgres db service because the managed solution they offer is pretty nice and I need the connection pooler :) It is quite overkill to have the whole supabase stack running locally on my computer as I only need the db, I could switch to a remote db for development down the line if I need to, but once things are running in production, using just the db for the project shouldn’t be an issue
@synen
@synen 2 ай бұрын
are you concerned about AI interfering in your career?
@alexandrodisla6285
@alexandrodisla6285 2 ай бұрын
No
@zheil9152
@zheil9152 Ай бұрын
Friendly reminder that we are now 11 months into “in 6 months, AI will take your job” So, no. Not worried.
The Ultimate Beginner’s Guide To Learn And Master Vim
33:56
Josean Martinez
Рет қаралды 41 М.
What does larger scale software development look like?
24:15
Web Dev Cody
Рет қаралды 1,3 МЛН
Кәріс өшін алды...| Synyptas 3 | 10 серия
24:51
kak budto
Рет қаралды 1,3 МЛН
Они убрались очень быстро!
00:40
Аришнев
Рет қаралды 3 МЛН
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 10 МЛН
How I Setup Neovim To Make It AMAZING in 2024: The Ultimate Guide
1:26:35
Josean Martinez
Рет қаралды 137 М.
7 Amazing CLI Tools You Need To Try
18:10
Josean Martinez
Рет қаралды 222 М.
Introducing The GoTTH Stack - Go, Tailwind CSS, Templ & HTMX
28:29
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 330 М.
The App YOU or I Could Have Built... ShipFast
6:52
Travis Media
Рет қаралды 113 М.
How To Make Your Boring macOS Terminal Amazing With Alacritty
16:33
Josean Martinez
Рет қаралды 105 М.
Testcontainers have forever changed the way I write tests
12:11
Dreams of Code
Рет қаралды 109 М.
DHH - Ruby on Rails, 37signals, and the future of web development
1:09:57
Rust Data Modelling Without Classes
11:25
No Boilerplate
Рет қаралды 161 М.
Learn Drizzle ORM in 13 mins (crash course)
14:00
Neon
Рет қаралды 20 М.
Main filter..
0:15
CikoYt
Рет қаралды 4,3 МЛН
КОПИМ НА АЙФОН В ТГК АРСЕНИЙ СЭДГАПП🛒
0:59
i love you subscriber ♥️ #iphone #iphonefold #shortvideo
0:14
WWDC 2024 - June 10 | Apple
1:43:37
Apple
Рет қаралды 10 МЛН
Bardak ile Projektör Nasıl Yapılır?
0:19
Safak Novruz
Рет қаралды 6 МЛН