This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
55 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,53 @@ | ||
# template | ||
|
||
Template est une application [next](https://nextjs.org/) développée par la [Fabrique des ministères sociaux](https://www.fabrique.social.gouv.fr/). | ||
|
||
Storybook URL : <https://socialgouv.github.io/template/> | ||
Production URL : <https://template.fabrique.social.gouv.fr/> | ||
|
||
## Description | ||
|
||
GitOps | ||
Utiliser react-dsfr | ||
sentry / matomo | ||
tooling (lint/tests) | ||
best practices next/TS | ||
Best practices HTTP (CSP) | ||
Pages de base | ||
homepage | ||
mentions-legales | ||
CGU | ||
accessibilité | ||
healthz | ||
stats cf 1000jours/stats | ||
Ce template est composé de page : | ||
|
||
- Page principale | ||
- Politique de confidentialité | ||
- Mention légale avec une référence à l'accessibilité | ||
- Healthz | ||
- Conditions générales d'utilisation | ||
- Statistiques d'utilisation (fonctionnant avec matomo) | ||
|
||
D'un point de vue technique : | ||
|
||
- Storybook | ||
- @testing-library pour les tests côté frontend | ||
- jest pour les tests unitaires | ||
- cypress pour les tests e2e | ||
- matomo pour les statistiques | ||
- react-dsfr pour le design systeme de l'état | ||
- next-seo pour gérer les balises meta | ||
- sentry pour la gestion des erreurs | ||
|
||
## Lancer le code | ||
|
||
Après avoir clean le projet : | ||
|
||
### Développement | ||
|
||
```bash | ||
yarn | ||
yarn dev | ||
``` | ||
|
||
### Production | ||
|
||
```bash | ||
yarn | ||
yarn build | ||
yarn export | ||
``` | ||
|
||
## Todo | ||
|
||
- Ajouter des CSP | ||
- Finir la documentation, en mode si vous créez un fichier faut le mettre là, etc. | ||
- Rajouter une config sur <https://github.com/SocialGouv/linters> un linter pour next 12 et accessibilité plugin |
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
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