Coder Social home page Coder Social logo

mekar's Introduction

Mekar

A so called "Micro Frontend", inspired by Mekari's Frontend Architecture.

Run the example apps

  • Copy env example to their respective env file, env.production.example to env.production and env.development.example to env.development.
  • Run bun run dev to start the example apps.
  • Example apps consists of parent app and child app, both in their respective folder, parent and child.
  • Use bun run dev --filter [app-name] to run each project individually.
  • Parent app can be opened from localhost:8080.
  • Open localhost:8080/child to see the child app running inside the parent app.
  • Child app can still be opened separately from localhost:8081.

mekar's People

Contributors

krisantuswanandi avatar

Watchers

 avatar

mekar's Issues

should reset the page's state when moving out from a remote app

currently, moving out from a remote app (changing pages) only removes <script> and <link> added by the remote app out of the document. The side effects caused by the remote app's scripts are still there. let's say you have a setInterval inside a remote app's script, it will run the interval when we open the remote app, and we're finally moving out from the remote app, the setInterval will still be running because removing <script> from a page doesn't stop the process created by that script. by the same reason, <style> added by the script won't be removed when we're removing the script. the only solution i can think of right now is using mpa for the host app, where it forces you to do full reload which then resets the page's state.

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.