# TTapp using next.js

## How to use

Download the example [or clone the repo](https://git.e-declic.net/talents-tube/app.git):

```bash
git clone
```

Install it and run:

```bash
yarn install
yarn build
yarn dev
```

- Look at package.json for infos on build etc.

## The framework used

[Next.js](https://github.com/zeit/next.js) is a framework for server-rendered React apps.

[Redux-Saga]
https://redux-saga.js.org/docs/basics/ErrorHandling.html
is a library that aims to make application side effect asynchronous things like data fetching and impure things like accessing the browser cache

## Integration

### Naming conventions

style classes name syntax : Camel case
Try to name without too much precision

### Material UI

[components/atoms/theme.js] Const file
[components/atoms/] Atomic components
[components/organisms] General components
[components/templates] Layouts components

## MEP

=================================
Mise en PRE-production de l’application PWA
=================================
Aller dans la preproduction et git pull dans le répertoire /app (pas www)
Possibilité de devoir git stash
Attention de bien avoir le .env
Restart docker preproduction (sudo make ENV=preprod docker-restart)
sudo docker exec -it frontnginx.nginx bash
nginx -t && nginx -s reload

## Test

### Cypress

[Gmail-tester]
https://github.com/levz0r/gmail-tester

## Continuous Integration

### Jenkins

> in case of emergency
> make docker-restart ENV=dev
> adduser jenkins root
