Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprint 1 #146

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Задание 1.

### Уровень 1.

Для разбивки данного монолитного frontend части приложения я бы остановил свой выбор на Webpack Module Federation,
так как по описанию, мне показалось, что этот инструмент более легок в осноении чем Single SPA.
Также, одним из преимуществ Single SPA, является "Framework agnostic", но в данном проекте, я не вижу мест, где это можно было бы применить.

### Уровень 2.

В рамках декомпозиции были выделены 3 микрофронтенда(remote):
- микрофронтенд аутентификации([auth-microfrontend](https://github.com/EvgenyMaklakov/architecture-sprint-1/tree/sprint_1/frontend/auth-microfrontend/src));
- микрофронтенд редактирования профиля([profile-editing-microfrontend](https://github.com/EvgenyMaklakov/architecture-sprint-1/tree/sprint_1/frontend/profile-editing-microfrontend/src));
- микрофронтенд профиля ([profile-microfrontend](https://github.com/EvgenyMaklakov/architecture-sprint-1/tree/sprint_1/frontend/profile-microfrontend/src)).

Важно отметить, что также в структуру был добавлено основное приложение([host-microfrontend](https://github.com/EvgenyMaklakov/architecture-sprint-1/tree/sprint_1/frontend/host-microfrontend/src)) для динамической загрузки удаленных модулей.

Такой вариант разбивки был сделан после анализа зависимостей и функционала приложения. Были выделены максимально не связанные между собой домены. Примерная структура каждого из микрофронтендов отражена в директории _frontend/{название микрофронтенда}_.

### Уровень 3.
Не выполнено.

## Задание 2.
Файл - ([Архитектура](https://github.com/EvgenyMaklakov/architecture-sprint-1/tree/sprint_1/task2.drawio)).
26 changes: 0 additions & 26 deletions frontend/.gitignore

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import '../blocks/login/login.css';
import '../styles/login.css';

function Login ({ onLogin }){
const [email, setEmail] = React.useState('');
Expand Down
File renamed without changes.
49 changes: 0 additions & 49 deletions frontend/index.spec.js

This file was deleted.

Loading