Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/android10/frontend-architecture-modular-monolith

This is a movies sample app in Typescript using Vue, React and Angular. It aims to demonstrate how to architect frontends using a modular monolith approach as inspiration, for a later evolution to micro-frontends
https://github.com/android10/frontend-architecture-modular-monolith

architecture frontend frontend-development javascript micro-frontend microfrontend monolith-architecture monolithic-architecture pwa pwa-apps ts typescript vscode web web-development

Last synced: 3 days ago
JSON representation

This is a movies sample app in Typescript using Vue, React and Angular. It aims to demonstrate how to architect frontends using a modular monolith approach as inspiration, for a later evolution to micro-frontends

Awesome Lists containing this project

README

        

## Frontend Web Architecture: A Modular Monolith Approach

In order to **get started,** please refer to the the following **article/post** I have written:

- [Frontend Web Architecture: A Modular Monolith Approach](https://fernandocejas.com/blog/engineering/2023-10-31-rust-cross-platform-web/).

## The Idea

**A picture worth a thousand words!** Here is a summary of what this project tries to accomplished:

TODO

And here the **implemantion details:**

TODO

## Software Stack

- [Vue.js](https://vuejs.org/).
- [pnpm](https://pnpm.io/).
- TODO

## Recommended `nodejs` version

- If you use [asdf-vm](https://asdf-vm.com/) as **Version Manager**, please check the [.tool-versions](.tool-versions) file.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:

1. Disable the built-in TypeScript Extension
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Local Development

```bash
pnpm install # Install project dependencies
pnpm dev # Compile and Hot-Reload for Development
pnpm build # Type-Check, Compile and Minify for Production
```

## Testing and Code quality

It includes, Static Analisys, Lint and Unit and Integration tests.

### Run Tests with [Vitest](https://vitest.dev/)

```sh
pnpm test
```

### Lint with [ESLint](https://eslint.org/)

```sh
pnpm lint
```

## References

- https://vitejs.dev/guide/
- https://vitest.dev/guide/
- https://vuejs.org/guide/
- https://vuejs.org/guide/typescript/overview.html
- https://github.com/vuejs/language-tools
- https://pinia.vuejs.org/
- https://github.com/vuejs/awesome-vue

## License

Copyright 2023 Fernando Cejas

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

![https://fernandocejas.com](https://github.com/android10/Sample-Data/blob/master/android10/android10_logo_big.png)

Buy Me A Coffee