Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Channel 9 CRM: HTML5/JS Cross Platform Sample

This repository contains the source code of the Channel 9 CRM demo shown at the Cross Platform Day series on Channel 9. This demo shows how to build apps for browsers, desktop and mobile platforms using one single Angular 2 codebase.

Toolchain

This is the toolchain we presented in our video series:

Setup

  • Make sure you have Node.js installed
  • If you use a Node version manager, make sure you activated Node for your active terminal
  • Run npm i in order to install all dependencies
  • You’re all set!

Build

  • Run npm run build to build all web files (i.e. CSS and TypeScript files), desktop and mobile apps

Watcher

  • Run npm run dev to automatically start backend, frontend and watch for frontend source changes

Run

  • Run a static file server (such as live-server) to host the files found in dist/frontend
  • Run npm run server to launch the server part of this demo
  • Authentication: Username must match password, e.g. admin:admin

Deploy

  • Make sure that the backend you host is accessible from the target device (on actual devices, you will have to adjust the base URL found in src/frontend/services/urlService.ts from localhost to a local IP and rebuild the web files)
  • Use TACO, Ionic, Cordova or another tool to deploy the apps to mobile devices

Dependencies

Including, but not limited to…

  • AdminLTE, open source admin dashboard and control panel theme
    • jQuery, yeah – unfortunately.
    • Bootstrap, framework for responsive websites
  • Angular 2, Single-Page Web Application (SPA) framework for the modern web
  • Fastclick, eliminates the infamous 300 ms lag on devices using the iPhone-style Touch Events
  • Font Awesome, the iconic font and CSS toolkit
  • Gulp, the streaming build system
  • Restify, Node.js module for building RESTful web services
  • Sequelize, Node.js Object-Relational Mapper (ORM)
  • SQLite 3, Self-contained SQL database engine

About

Cross-platform sample for Channel 9: Leveraging TypeScript, Angular 2, Gulp, Electron and TACO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published