All Projects → CanopyTax → Sofe

CanopyTax / Sofe

Licence: apache-2.0
Service Oriented Front-end

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Sofe

Refills
Refills is maintained by the thoughtbot design team. It is funded by thoughtbot, inc. and the names and logos for thoughtbot are trademarks of thoughtbot, inc.
Stars: ✭ 1,523 (+972.54%)
Mutual labels:  front-end
Interactor
A Simple Website User Interaction Tracker.
Stars: ✭ 128 (-9.86%)
Mutual labels:  front-end
Blog
ScriptLife's Blog
Stars: ✭ 133 (-6.34%)
Mutual labels:  front-end
Apex Nitro
Your essential APEX companion
Stars: ✭ 122 (-14.08%)
Mutual labels:  front-end
Fast
Develop, build, deploy, redeploy, and teardown frontend projects fast.
Stars: ✭ 126 (-11.27%)
Mutual labels:  front-end
Single Spa Vue
a single-spa plugin for vue.js applications
Stars: ✭ 128 (-9.86%)
Mutual labels:  front-end
Rxios
A RxJS wrapper for axios
Stars: ✭ 119 (-16.2%)
Mutual labels:  front-end
Te Emprego
Front-end
Stars: ✭ 136 (-4.23%)
Mutual labels:  front-end
Woofmark
🐕 Barking up the DOM tree. A modular, progressive, and beautiful Markdown and HTML editor
Stars: ✭ 1,594 (+1022.54%)
Mutual labels:  front-end
Instapack
All-in-one TypeScript and Sass compiler for web applications! 📦 🚀
Stars: ✭ 131 (-7.75%)
Mutual labels:  front-end
Forum
Fórum da BrazilJS
Stars: ✭ 123 (-13.38%)
Mutual labels:  front-end
Cc
代码库 & Blog
Stars: ✭ 1,581 (+1013.38%)
Mutual labels:  front-end
Gpu Viewer
A front-end to glxinfo, vulkaninfo, clinfo and es2_info - Linux
Stars: ✭ 129 (-9.15%)
Mutual labels:  front-end
Single Spa Angular
Helpers for building single-spa applications which use Angular
Stars: ✭ 120 (-15.49%)
Mutual labels:  front-end
Fe Knowledge
2020前端知识图谱
Stars: ✭ 134 (-5.63%)
Mutual labels:  front-end
Quickmenu
The new era of mobile navigation for the web, we're out of hamburgers.
Stars: ✭ 119 (-16.2%)
Mutual labels:  front-end
Fedevtalk
🍀 Naver Front-End Conference, FE devtalk 🎉
Stars: ✭ 121 (-14.79%)
Mutual labels:  front-end
Roadmap Web Developer 2017
Front-end (HTML5/CSS3/Javascript related) technologies to learn in 2017
Stars: ✭ 142 (+0%)
Mutual labels:  front-end
Fe Interview
😃 每日一道经典前端面试题,一起共同成长。
Stars: ✭ 134 (-5.63%)
Mutual labels:  front-end
Zofe
📻 ZOFE: Um podcast sobre desenvolvimento e tecnologia
Stars: ✭ 129 (-9.15%)
Mutual labels:  front-end

Project status

Sofe is a plugin for [email protected], but the latest version of systemjs is >3. The new versions of systemjs have the equivalent of sofe built into systemjs itself, via import maps. Because of this, we encourage that you use [email protected]>=3 + import maps, instead of using [email protected] + sofe. See this file for an example of what the new alternative looks like. For the equivalent of sofe's local storage overrides, check out import-map-overrides.

sofe

Service Oriented Front-end - Sofe is a SystemJS plugin that resolves a module name to a fully qualified url at runtime.

npm version Build Status Code Coverage

Sofe allows developers to avoid building monolothic front-end web applications and instead build software on top of micro-services. Sofe is a JavaScript library that enables independently deployable JavaScript services to be retrieved at run-time in the browser.

More on the motivation for SOA in the browser

Getting Started

  1. Setup SystemJS and JSPM
  2. Configure SystemJS to use the sofe plugin:
jspm install npm:sofe
  1. Load sofe services:
System.import('sofe-hello-world!sofe')
  .then(hello => hello())
// Sofe is properly setup if the browser alerts a hello world.
// You have successfully loaded the hello-world sofe service.

By default, any npm package with a UMD build can be a sofe service. Simply load the service by the package name:

System.import('backbone!sofe')
  .then(Backbone => new Backbone.View({}));

Create your own service

By default, all npm packages are loaded through npm (unpkg). While this is convenient, it isn't always what you want to do for your own services. You can provide a custom location for where your service distributable is located by adding a sofe property to your package.json:

{
  "name": "my-service",
  "version": "1.0.0",
  "sofe": {
    "url": "https://cdn.some-location.com/my-service-1.0.0.js"
  }
}

Republish a new sofe URL to npm whenever you want to update the location of your service distributable.

Services in production

Create your own private service by telling sofe how to resolve your service name. Add to your systemjs configuration a manifest option to a sofe property or auto-discover services by loading a remote manifest of available services:

System.config({
  sofe: {
    manifest: {
      "someInternalService": "http://somelocation.com/service-1.0.0.js"
    },
    manifestUrl: 'https://somelocation.com/available-services.json'
  }
});

Learn more about production configuration within the API documentation

Examples

Examples are available at sofe.surge.sh or you can run them locally

Tools

  1. sofe-inspector - Developer tool for inspecting and overriding available sofe services
  2. sofe-babel-plugin - A babel plugin for production sofe workflows with webpack
  3. sofe-deplanifester - A manifest deployment service for sofe
  4. sofe-hello-world - A simple sofe-service to say hello

License

Copyright 2016 CanopyTax

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].