GithubHelp home page GithubHelp logo

ptzagk / micro-frontend-pages Goto Github PK

View Code? Open in Web Editor NEW

This project forked from willmendesneto/micro-frontend-pages

0.0 1.0 0.0 259 KB

Simulate a micro frontend project using NodeJS, React and NGinx Reverse Proxy in Alpine Docker images

Dockerfile 7.94% JavaScript 92.06%

micro-frontend-pages's Introduction

Micro Frontend Pages

Simulate a micro frontend project using NodeJS, React and NGinx Reverse Proxy in Alpine Docker images

This project is based on my talk at JSConf.Asia 2018 about Micro Frontend applications.

Setup

Please make sure that you have Docker and Docker compose installed in your machine. After that, just run the command

$ docker-compose up
# or "docker-compose up --build"
# if you want to rebuild the containers

And, after that, you'll can check the performance of Docker images using docker stats command.

About the folders

Every folder is part of the Micro Frontend Pages demo project. In this project we have 4 folders with connected content.

Monolith

The folder monolith is the default page of our project, so when you run the project using the commands:

nvm use # or make sure you are using NodeJS v8.1.4
npm install
npm start

and access http://localhost:8888 you will see the web application with links for all other pages. This is the legacy code we are using as a base for our migration from monolith to microfrontend \o/!

NGinx

NGinx is being used to make a reverse proxy, connecting every single page as only one application for the users. It's connected with all pages and related projects.

Home

The folder home-page is the default page of our project, so when you run the containers using docker-compose up command and access http://localhost:8888 you will see the main page or our project with links for all other pages

Docs

The folder docs-page is the docs page of our project. The page is quite simple for now and it's one of the state in our project. You can access the page accessing http://localhost:8888/docs.

Checkout

The folder checkout-page is the checkout page of our project. The page is quite simple for now and it's one of the state in our project. You can access the page accessing http://localhost:8888/checkout.

Categories page

The folder items-page is the list of items page of our project. The page has a list of items by category, linking to a specific page for a item in our project. You can access the list page accessing http://localhost:8888/items and the list item page acessing http://localhost:8888/items/:id.

Author

Wilson Mendes (willmendesneto)

micro-frontend-pages's People

Contributors

caiocezart avatar willmendesneto avatar

Watchers

 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.