Node Objection.js tutorial with knex and Postgres | Node SQL ORM

Pubblicato il: 08 febbraio 2021
sul canale di: Jan Goebel
19,788
441

🔥More exclusive content: https://productioncoder.com/you-decid...
Twitter:   / _jgoebel  
Blog: https://productioncoder.com
Website: https://jangoebel.com
Full code: https://github.com/productioncoder/ob...

This screencast covers how to use Objection.js. Objection.s uses knex.js under the hood and is a SQL-friendly ORM tool for Node.js. We cover how to perform database migrations with the knex CLI tool, how to create seed data and how to connect to a Postgres database. We also build an express.js REST API to demonstrate how Objection.js can be used in Node.

00:00 introduction
02:20 project setup
06:19 creating a knexfile
09:18 Objection.js snake case mappers
11:52 creating database schema migration
19:23 executing initial database migration
23:07 creating seed data with knex CLI tool
30:47 executing seed file
31:57 creating Objection.js model classes
34:24 wiring up Objection with knex.js and Postgres
36:13 creating an express REST API powered by Objection.js
39:25 testing out REST API with Objection.js
40:00 eager loading in Objection.js
40:45 adding relation mappings
43:22 conclusion


In questa pagina del sito puoi guardare il video online Node Objection.js tutorial with knex and Postgres | Node SQL ORM della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Jan Goebel 08 febbraio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 19,788 volte e gli è piaciuto 441 spettatori. Buona visione!