Coder Social home page Coder Social logo

gdserver's Introduction

gdServer

The main project for the OneWeb .net web site.

This project contains the .csproj and C# code that implements the oneweb /api. This /api depends upon the ParterAPI.

This project also contains a build process that deploys all the supported applets.

build commands

grunt build - build debug .net server
grunt compile - build release .net server
grunt compile-applets - - copies applets/bin to .net /static, moves applet/index.html to .net views - minified 
grunt build-applets - - copies applets/build to .net /static, moves applet/index.html to .net views - expanded

considerations:

Support a universal router table that's loaded into all the applets. The router resolves the URL's applet and path using a table indexed by a product id, and target. The project id the retail partner. The target is the screen type; such as mobile, tablet, desktop, and native.

.net/static/gdRouter/route.json
routes = [
{
    product_id: all,
    taget:      all,
    path: "/",
    view: "view/appletGdHome",
},

{
    product_id: all,
    target:     all,
    path: '/login',
    view:  '/view/appletGdLogin',
},
{
    product_id: all,
    target:     all,
    path: '/dashboard',
    view:  '/view/appletGdDashboard',
},
{
    product_id: 'necktie',
    target:     all,
    path: '/dashboard',
    view:  '/view/appletNecktieDashboard',
},
{
    product_id: 'necktie',
    target:     'small',
    path: '/dashboard',
    view:  '/view/appletNecktieMobileDashbaord',
}
];

Applets support creating css/html urls based on product, target, language, and theme. Also support caching that expires on version change.

Each applet has it's own copy of gdClient. We don't rebuild all applets when we create a new version of the /gdClient code.
Use CDN for angular, jquery, and fonts caching.

Deploy all applets to .net/static pages.

cp /:applet/bin .net/static/applet/:applet

Deploy applets' index page to .net view. Add these index views to .csproj.

cp /:applet/bin/index.html .net/view/:applet/index.html,

The .net web view router loads the corresponding applet's index page. For example, the path /view/appletNecktieDashboard/Double-Windsor/video responds with the /view/appletNecktieDashboard/index.html file.

Version number scheme

gdClient versions
 1.1.0  - first release cycle (p4 release 58)
 1.2.0  - next release cycle (p4 release 59)
appletGdLogin versions
 1.1.0  - first release cycle (p4 release 58)
 1.2.0  - second release cycle (p4 release 61)
 1.2.1  - emergency bug fix (p4 off-cycle)
appletGdDashboard versions
 1.1.0  - first release cycle (p4 release 58)
 1.2.0  - second release cycle (p4 release 59)
appletNecktieDashboard version
 1.1.0   - next year's release (p4 release 66)

gdserver's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.