One Source to Rule them All
summary
Claim: one codebase produces both web and native apps by sharing Angular logic and UI layers using Angular + NativeScript and an NX monorepo with NX + xplat generators. The demo builds a “Hobbit Fitness Pal” web app (nx serve) and Android/iOS native apps (nx run) that share libs, services and a meal-add flow with camera capture; the web uses navigator.mediaDevices, native uses camera.takePicture, and it works end-to-end except iOS emulator falls back to the photo library.
AI-written summary · about
chapters (15)
- 0:00Introduction and goals
- 1:26What is NativeScript
- 4:15Code sharing fundamentals
- 6:45Recommended solutions overview
- 7:48Why xplat is my choice
- 9:10Setting up xplat
- 10:11Creating nx workspace
- 11:58Code sharing structure
- 12:59Generating shared services
- 14:23Generating shared components
- 16:30Building the UI
- 17:52Running the apps
- 18:18Live demo walkthrough
- 20:27Camera integration demo
- 23:13Conclusion and next steps
related talks
52mOne Source to Rule them All
41mSharing Code between Web and Native Apps with Angular and NativeScript.
27mSharing Code Between Web and Mobile Native Apps
36mSharing Code Between Web and Native Apps
22mNativeScript and CodeSharing
01h 09mSharing Code between Mobile Apps with Angular and NativeScript
49mBuilding mobile apps with Angular2 and NativeScript
31mFrom web to mobile with NativeScript and Angular
