This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Страницы: | |
список hotels, /hotels | |
детальная стр отеля /hotels/:id | |
страница добавленые в избраное /favorites | |
формы / forms | |
- детальная стр отеля - берем id и делаем запрос к API или выбираем из масива нужный елемент | |
- определить конфигурацию для навигацию и сделать ленивую подгрузку для каждого | |
- Route guard - запретить переход на страницу добавленые в избраное, если ничего не добавлено |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Формы | |
Предлагаю форму регистрации | |
- name | |
- surname | |
- password | |
- confirm Password | |
- Дата рождения - select options | |
- radio button (мужчинаб женщина) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Подготовить API | |
- Масив hotels в API - вынести в josn, используя https://github.com/typicode/json-server запустить фейковый сервер | |
- Можно взять любое другое API, | |
- можно посмотреть в сторону MockBackend | |
- Постраничная навигацию (pagination) Можно взять из Material design | |
- Добавить больше элементов в json | |
- Paginator Можно взять из Material design | |
- При клике на компоненту - передаем значения (page, size, ...) и прокидуем всервис | |
- Http Params - дергаем API, почитать в доке к API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Lector Profile!](https://www.linkedin.com/in/limarenkodenis) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"jsRules": { | |
"class-name": true, | |
"no-console": [ | |
true, | |
"log", | |
"debug", | |
"info", | |
"time", | |
"timeEnd", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const router = express.Router(); | |
const models = require('../models'); | |
router.param('id', (req, res, next) => { | |
req.findOne = models.customer.findOne({ | |
where: { | |
id: req.params.id | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "node", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", |