Skip to content
This repository has been archived by the owner on Jan 31, 2021. It is now read-only.

orgbx/PANG-Polymorphic-ANGular-seed

 
 

Repository files navigation

PANG: the Polymorphic ANGular seed

Description

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.

Usage

common steps

npm install -g nativescript (run only once)
tns install

Nativescript start

tns emulate ios
tns emulate android

Webapp start

npm start

open (http://localhost:9000/)

Server start

npm run server

Webapp and server start

npm run all

About

PANG: the Polymorphic ANGular seed

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 56.1%
  • HTML 21.0%
  • CSS 12.4%
  • JavaScript 10.5%