Coder Social home page Coder Social logo

eraykeskinmac / mfng Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unstubbable/mfng

0.0 0.0 0.0 1.12 MB

Micro Frontends Next Generation – A Serverless RSC Playground

Home Page: https://mfng.unstubbable.workers.dev

License: MIT License

JavaScript 19.45% TypeScript 80.55%

mfng's Introduction

MFNG - A React Server Components Playground

Motivation

Exploring Possibilities for Next-Generation Microfrontends

Do we still need to deploy microfrontends and their APIs (also known as BFFs) independently of the main app? Or can we instead compose them at build-time (lazily) and utilize server components to let them fetch their data on the server?

Features

  • Streaming fast
  • React server components
  • Server-side rendering
  • Client components loaded as separate chunks
  • Server actions
  • Progressively enhanced form actions
  • Suspensy routing
  • Development server
  • Production builds
  • Serverless deployment examples
  • Support poisoned imports
  • Microfrontend composition demo
  • Advanced routing

Getting Started

npm install
npm run dev

Open http://localhost:3000

Deployment

To deploy the workers to your own workers.dev domain, first create a Cloudflare API Token, then run:

CLOUDFLARE_API_TOKEN=<insert-your-token> npm run deploy

Deploying via GitHub Actions

To deploy via GitHub Actions, follow these steps:

  1. Fork the repository.
  2. Create a new environment with the name "Cloudflare Workers".
  3. Add the environment secret CLOUDFLARE_API_TOKEN using your own token as the value.
  4. Push a commit to the main branch.

Please let me know in the issues if any of these steps do not work for you.

mfng's People

Contributors

unstubbable avatar koeq 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.