This is a proof of concept exploring multiplatform code sharing options using Typescript + Angular 2 + Nativescript. Current scenarios cover:
- Sharing API endpoints and interfaces between server & client
- Sharing branding (styles) between web and native
- Sharing business logic (services.ts) between web and native
- Sharing component logic (components.ts) between web and native
The purpose of this PoC is to explore the most natural way to develop multiplatform code without adding complexity.
npm install -g nativescript (run only once)
tns install
tns emulate ios
tns emulate android
npm start
open (http://localhost:9000/)
npm run server
npm run all