Giter Club home page Giter Club logo

Pocket4D

Pocket4D is a flutter-mini-program(FMP) solution for mobile apps.

  1. Pocket4D
    1. Introduction
    2. Project Structure
    3. Enviorments && Tools
    4. Build and run
      1. Env Requirement:
      2. Materials
      3. Steps
    5. Documents
  2. Teams

Introduction

Project Structure

  1. framework -- a javascript framework that runs the FMP bundle
  2. pocket4d -- main project entry
  3. pocket4d/android -- kotlin/java code
  4. pocket4d/ios -- swift/oc code
  5. pocket4d/lib -- dart code
  6. pocket4d/clang -- clang ffi code
  7. pocket4d/rust -- rust ffi code
  8. pocket4d/example -- example app that runs in android/ios simulator or real device
  9. pocket4d/test -- test code

Enviorments && Tools

  1. please install dart and flutter sdk first.
  2. use fvm to manage different flutter version: see https://github.com/leoafarias/fvm
  3. if you find emulator of AndroidStudio is too slow, please use Mumu emulator.
    1. install: http://mumu.163.com/
    2. usage:
    adb connect 127.0.0.1:5555
  4. usd flutter doctor -v to see if your flutter enviorment is installed correctly

Build and run

Env Requirement:

  • [✓] Flutter (Channel stable, 1.20.3)
  • [✓] Dart version 2.9.2
  • [✓] Android toolchain
  • [✓] Xcode 11.7

Materials

  • [✓] Pocket4d-Cli: repo
  • [✓] Pocket4d-Server: repo

Steps

  1. Build and Run Pocket4d-server

    • git clone
        git clone https://github.com/Pocket4D/Pocket4D-Server 
    • create a folder name bundled, build and run the ./pocket4d-server
    cd pocket4d-server && mkdir bundled && sh ./build.sh && ./pocket4d-server

  2. Edit html css and build with Pocket4d-cli

    • git clone pocket4d-cli
         git clone https://github.com/Pocket4D/Pocket4D-Cli 
    • open src folder start edit *.html,*.css and *.config, remember to edit app.config, with pages config
    • build bundle json
      yarn build
    • goto pocket4d-cli/dist, and upload the json, for example
      curl -F [email protected] localhost:3001/api/v1/bundled/app

  3. go to pocket4d/pocket4d/example, and run

    flutter run

Documents

Teams

Pocket 4D's Projects

kbone icon kbone

一个致力于微信小程序和 Web 端同构的解决方案

kraken icon kraken

A high-performance, web standards-compliant rendering engine based on Flutter.

quickjs icon quickjs

Public repository of the QuickJS Javascript Engine. Pull requests are not accepted. Use the mailing list to submit patches.

quickjs_dart icon quickjs_dart

A dart binding and JSEngine for QuickJS, using Dart:FFI

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.