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

https://github.com/paulintrognon/plouf-plouf

Site de tirage au sort en ligne
https://github.com/paulintrognon/plouf-plouf

nextjs random reactjs typescript

Last synced: 6 months ago
JSON representation

Site de tirage au sort en ligne

Awesome Lists containing this project

README

          

# Plouf, plouf !

[![Actions Status](https://github.com/paulintrognon/plouf-plouf/workflows/CI/badge.svg)](https://github.com/paulintrognon/plouf-plouf/actions)
[![Actions Status](https://github.com/paulintrognon/plouf-plouf/workflows/CD/badge.svg)](https://github.com/paulintrognon/plouf-plouf/actions)

Site de tirage au sort en ligne avec partage du résultat.

# Développement local

## Avec Node.js

```shell
yarn
yarn dev
```

## Avec Docker

```shell
docker compose up dev
```

# Code Quality

## Eslint

Avant chaque commit est lancé un audit de code avec `husky`. Si l'audit ne passe pas, le commit ne pourra se faire.

Pour lancer un audit manuellement :

```shell
yarn lint .
```

Vous pouvez tenter de réparer automatiquement les erreurs avec :

```shell
yarn lint . --fix
```

## Tests E2E

Lancer les tests E2E avec la commande suivante :

```
yarn test
```

# Prod

## Avec Node.js

```
yarn start
```

## Avec Docker

```
docker-compose up prod
```

## Utiliser l'image officielle https://hub.docker.com/r/paulintrognon/plouf-plouf

```
docker run -d --restart=always -p 80:3000 paulintrognon/plouf-plouf:latest
```