Coder Social home page Coder Social logo

foxpage / foxpage-sdk-js Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 6.0 1.21 MB

Foxpage SDK for JavaScript in the browser and Node.js.

Home Page: http://www.foxpage.io

License: MIT License

JavaScript 5.08% TypeScript 94.59% HTML 0.33%
foxpage ssr csr nodejs typescript rendering-engine reactjs

foxpage-sdk-js's Introduction

Foxpage SDK JS

Minimum node.js version typescript version yarn coverage

Foxpage SDK for JavaScript in the browser and node.js.

🖥 Introduction

Foxpage Node SDK

It is the core part of the Foxpage framework and a development kit provided for node applications. Developers can quickly access and use the Foxpage framework by using the SDK.

Features

Provide a series of features such as resource management, page parse, page rendering and plug-in for application services.

  • Resource Management. Responsible for all dependent resource management, synchronize resource information between processes through multi-process communication, cache resources locally to improve performance, and create a scheduler to open timed tasks to update local resources.
  • Page parse. Contains a series of processes from user access to output page structure DSL. The first is route parsing, which obtains the page information accessed by the user, obtains all dependency information relations according to the page information, and creates the context, and finally performs content parsing through the parser to output the complete page DSL.
  • Page render. Render according to the parsed page DSL. The rendering process is divided into: server-side rendering(SSR) and client-side rendering(CSR).
  • Plug-in. In order to improve scalability, support plug-in, and enhance the expansion ability of business fields through plug-ins.

Foxpage JS SDK

Foxpage JS SDK is for browser use. Currently, provides browser-side parsing and component loading.

✨ Project

<Project Root>
  ├── .storybook                    // storybook config
  ├── docs                          // docs
  └── packages
  │   ├─foxpage-app-server          // site application
  │   ├─foxpage-browser-loader      // load source in browser
  │   ├─foxpage-core                // foxpage sdk core: for parse DSL
  │   ├─foxpage-engine-react        // react render
  │   ├─foxpage-entry-react         // react csr entry
  │   ├─foxpage-js-sdk              // browser sdk
  │   ├─foxpage-manager             // resource manager
  │   ├─foxpage-middleware-koa      // koa middleware for foxpage node sdk
  │   ├─foxpage-node-sdk            // nodejs sdk
  │   ├─foxpage-plugin              // foxpage plugin core
  │   ├─foxpage-shared              // common utils
  │   ├─foxpage-transformer         // DSL transformer
  │   └─foxpage-types               // common types
  └── jest.config.js                // jest common config

📦 Commit

commit used [angular standard](https://github.com/angular/angular/blob/master/CONTRIBUTING.md。

commit config: commitlint.config.js。 see: github

commit lint by husky

npm:

npm run commit

// or

npx git-cz

🌍 publish & Release

  1. npm run boot and succeed before publish.
  2. lerna publish --ignore-scripts --no-push to publish public packages
  3. npm run release -- --release-as patch or npm run release -- --release-as minor generate new version: standard-version.

⏳ Contributing

Please read our Contributing Guide before submitting a Pull Request to the project.

🖐 Community support

For general help using Foxpage, please refer to the official Foxpage documentation. For additional help, you can use one of these channels to ask a question:

  • GitHub (Bug reports, Contributions)

📋 Documentation

See our documentation live Docs for the Foxpage SDK.

🏷️ License

See the LICENSE file for licensing information.

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.