GithubHelp home page GithubHelp logo

billyjov / angular-react-microfrontend Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 14.0 2.8 MB

:construction: React vs Angular ? Why not both ! Micro frontend demo using Angular and React alongs with a NodeJS API

License: MIT License

TypeScript 48.31% JavaScript 40.53% HTML 8.58% CSS 1.50% SCSS 1.09%
microfrontends-demo microfrontend reactjs angular typeorm web-components angular-elements micro-frontends micro-frontend

angular-react-microfrontend's Introduction

angular-react-microfrontend

microfrontend demo using Angular and React alongs with a NodeJS API

๐ŸŽจ Stack

๐Ÿ—๏ธ Global architecture

Architecture

Angular app modules view

Angular module view

React app component structure

React components

๐Ÿ”ง Installation

Adjust persistence settings with your local configuration. Just Change host and port and the database name inside the ormconfig.json located at src/server/ormconfig.json.

{
    "type": "mysql",
    "host": "localhost",
    "port": 3306,
    "username": "root",
    "password": "",
    "database": "microfrontends",
    "synchronize": true,
    "entities": [
        "api/entities/*.ts"
    ],
    "subscribers": [
        "api/subscribers/*.ts"
    ],
    "migrations": [
        "api/migrations/*.ts"
    ],
    "cli": {
        "entitiesDir": "api/entities",
        "migrationsDir": "api/migrations",
        "subscribersDir": "api/subscribers"
    }
}

๐Ÿƒ Running

Start the Server

  • Start your MySQL Database
  • Run the server

Open your terminal and run following commands:

$ cd src/server
$ npm install or yarn install
$ npm run dev or yarn dev
  • Run the client
$ cd src/client/todolist
$ npm install or yarn
$ npm run build:elements or yarn build:elements
$ cd ..
$ cd todo-details
$ npm install or yarn
$ npm run start or yarn start

๐Ÿšจ Run Tests

Run NodeJS Tests

$ cd src/server/
$ npm run test or yarn test

Run Angular Tests

$ cd src/client/todolist
$ npm run test or yarn test

Run ReactJS Tests

$ cd src/client/todo-details
$ npm run test or yarn test

๐Ÿ“„ Licence

Built with all โค๏ธ of the world by Billy Lando.

MIT License (MIT) ยฉ Billy Lando

angular-react-microfrontend's People

Contributors

billyjov avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular-react-microfrontend's Issues

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.