Syntax Video
Full Stack App Build | Travel Log w/ Nuxt, Vue, Better Auth, Drizzle, Tailwind, DaisyUI, MapLibre
In this video, CJ builds a Full Stack application with Nuxt / Vue / TypeScript that allows users to keep track of the places they have visited and view them on a map.
- 0:00 intro / overview
- 7:27 stack / architecture overview
- 12:18 github project board setup
- 15:50 project setup
- 17:52 github auto deploy with vercel
- 19:21 eslint / editor setup
- 21:10 antfu eslint-config
- 25:57 pre-commit hooks lint
- 30:30 git feature branch worflow
- 32:12 lint github action
- 38:48 tailwind setup
- 41:25 daisy ui setup
- 44:38 nuxt/icon setup
- 49:25 landing page
- 57:44 theme toggle / color mode
- 1:05:14 typesafe env with zod
- 1:11:54 db setup
- 1:13:21 drizzle setup
- 1:18:00 turso local development
- 1:22:25 db schema
- 1:29:42 set environment variables on vercel and github actions
- 1:31:46 auth setup with better-auth
- 1:40:00 github oauth setup
- 1:47:56 create auth store with pinia
- 1:52:31 auth error page
- 1:56:31 github oauth production configuration
- 1:58:08 turso cloud setup
- 1:58:53 run db migrations on production
- 2:01:24 auth status display
- 2:08:02 sign out page
- 2:12:48 protected routes redirect
- 2:16:25 SSR Auth Session
- 2:25:41 create dashboard sidebar
- 2:36:38 collapsible sidebar
- 2:47:16 persist sidebar collapse in localStorage
- 2:50:05 dashboard nested routes
- 2:52:05 create location form
- 2:57:20 validate form with vee-validate
- 2:58:53 drizzle zod validation schema
- 3:03:35 handle location form submit / show validation errors
- 3:07:59 re-factor form field component
- 3:14:53 show confirmation if unsaved changes in form
- 3:18:01 create location API route
- 3:19:21 validate location before insert
- 3:21:14 display server errors on form
- 3:30:06 loading state during create location
- 3:33:11 insert location into db
- 3:34:19 access logged in user in API route
- 3:37:59 insert location into db with userId
- 3:39:08 redirect after creating new location
- 3:41:12 csrf protection
- 3:46:54 validate unique location slug and name
- 3:50:22 generating slug during location insert
- 3:57:19 unique location name per user database constraint
- 3:59:35 oops - reset entire db / migrations
- 4:01:41 show unique location name error
- 4:04:10 consolidate location table db queries
- 4:12:23 show form errors in production
- 4:13:29 list locations in dashboard
- 4:16:41 create authenticated event handler util
- 4:22:46 list locations API route
- 4:24:17 list locations in dashboard
- 4:34:21 list locations in sidebar
- 4:52:06 map setup
- 4:54:50 set up nuxt-maplibre
- 4:59:39 map styles setup
- 5:05:55 list locations on map
- 5:17:09 center map on location bounds
- 5:29:53 map popups
- 5:32:48 override maplibre popup styles
- 5:37:20 set selected location on hover
- 5:48:22 zoom to map point on hover
- 5:56:27 drag marker to set location coordinates
- 6:10:15 center map on draggable marker
- 6:15:15 double click map to set location
- 6:20:30 places search api options
- 6:24:25 place search
- 6:25:31 view location page
- 6:29:59 typecheck npm script
- 6:31:45 view location page continued
- 6:41:25 location logs relation / query
- 6:46:59 view location by map marker
- 6:59:19 location specific sidebar links
- 7:05:17 refactor current location into store
- 7:11:54 location specific sidebar continued
- 7:19:20 update location details form
- 7:36:17 fix current location SSR
- 7:39:11 update location details form continued
- 7:42:39 fixing data loading issues
- 7:47:31 update location details form continued
- 7:48:46 update location details api
- 8:02:28 delete locations
- 8:12:45 delete location api
- 8:18:35 create location log form
- 8:47:38 create location log api
- 8:55:03 list location logs
- 9:08:03 list location logs in sidebar and on map
- 9:16:49 view location log
- 9:30:29 edit location log
- 9:41:45 delete location log
- 9:48:19 minio local s3 storage setup
- 10:00:52 s3 image upload flows
- 10:04:38 select upload image
- 10:12:07 resize / optimize image on client
- 10:17:20 create image checksum on client
- 10:19:23 create pre-signed post url on server
- 10:32:25 get pre-signed post url on client
- 10:38:40 upload image to s3 from client
- 10:41:59 insert image metadata into db
- 10:52:54 list images
- 11:08:14 s3 production setup
- 11:14:59 delete images
- 11:25:33 final fixes
- 11:35:19 nuxt sentry setup
- 11:39:41 final deployment
- 11:40:30 thanks!