This video dissects the built-in functionalities of Strapi, a headless CMS. We explore when these features excel and when alternatives are necessary.
Key insights include:
User registration with phone numbers (essential for modern applications).
Leveraging Strapi's entityService for efficient data management.
Crafting custom validation for robust data integrity.
Understanding transactions and preventing SQL injection vulnerabilities.
Ideal for enterprise, application developers seeking to optimize their Strapi backend.
More about strapi: more-at.tedix....
0:00 - Intro to strapi cms as your backend framework
1:44 - Register user with mobile phone number
2:46 - Login user an get JWT token
3:30 - Create new content-type Address
6:03 - API Address insert
6:47 - Add Router config "createCoreRouter"
7:29 - Create middleware to insert data
9:35 - Middlware insert logic
10:43 - Strapi entityService goodies out of the box
11:30 - Strapi data validation from the admin panel including RegExp
14:06 - Extending data validation
14:25 - Entity service conclusion
15:45 - Manual routers and custom validation (alternative to "createCoreRouter")
17:50 - Order content-type add custom router
19:05 - Add controller code using "strapi.db.query" instead of "entityService"
19:50 - Example of missing validation and database sanitization when using "strapi.db.query"
23:10 - Add validation "manually" using Yup under a content-type lifecycles.js hook events
26:20 - How to prevent SQL injections when using "strapi.db.query"
31:46 - Transactions commit & rollback intro
#strapiCMS #Nodejs #backendDevelopment #digitaltransformation #strapiGodFather
25 окт 2024