|
1 | | -# Getting Started with Create React App |
| 1 | +# Frontend – Site officiel du club de volley de Saint-Barthélemy-d’Anjou |
2 | 2 |
|
3 | | -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
| 3 | +## 🎯 Objectif |
4 | 4 |
|
5 | | -## Available Scripts |
| 5 | +Cette application front-end est la partie **publique et administrative (back-office)** du site web du club de volley de Saint-Barthélemy-d’Anjou. |
6 | 6 |
|
7 | | -In the project directory, you can run: |
| 7 | +Elle permet : |
| 8 | +- La consultation des contenus publics (équipes, actualités, résultats, partenaires…) |
| 9 | +- La gestion des contenus via une interface d’administration sécurisée |
| 10 | +- Une navigation fluide et responsive (desktop & mobile) |
8 | 11 |
|
9 | | -### `npm start` |
| 12 | +--- |
10 | 13 |
|
11 | | -Runs the app in the development mode.\ |
12 | | -Open [http://localhost:3000](http://localhost:3000) to view it in your browser. |
| 14 | +## 🧱 Stack technique |
13 | 15 |
|
14 | | -The page will reload when you make changes.\ |
15 | | -You may also see any lint errors in the console. |
| 16 | +- **React** (SPA) |
| 17 | +- **TypeScript** (si activé) |
| 18 | +- **Vite** (build & dev server) |
| 19 | +- **React Router** (navigation) |
| 20 | +- **Axios / Fetch** (API) |
| 21 | +- **ESLint** (qualité du code) |
| 22 | +- **Prettier** (formatage) |
| 23 | +- **CSS / Tailwind / SCSS** (selon implémentation) |
16 | 24 |
|
17 | | -### `npm test` |
| 25 | +--- |
18 | 26 |
|
19 | | -Launches the test runner in the interactive watch mode.\ |
20 | | -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
| 27 | +## 📁 Structure des dossiers |
21 | 28 |
|
22 | | -### `npm run build` |
| 29 | +``` |
| 30 | +frontend/ |
| 31 | +├── src/ |
| 32 | +│ ├── assets/ # Images, icônes, visuels |
| 33 | +│ ├── components/ # Composants UI réutilisables |
| 34 | +│ ├── pages/ # Pages (Home, Teams, News, Admin…) |
| 35 | +│ ├── layouts/ # Layouts globaux (Public / Admin) |
| 36 | +│ ├── services/ # Appels API |
| 37 | +│ ├── hooks/ # Hooks personnalisés |
| 38 | +│ ├── context/ # Context API / Auth |
| 39 | +│ ├── styles/ # Styles globaux |
| 40 | +│ ├── utils/ # Helpers |
| 41 | +│ └── main.tsx |
| 42 | +├── public/ |
| 43 | +├── .eslintrc |
| 44 | +├── .prettierrc |
| 45 | +├── package.json |
| 46 | +└── vite.config.ts |
| 47 | +``` |
23 | 48 |
|
24 | | -Builds the app for production to the `build` folder.\ |
25 | | -It correctly bundles React in production mode and optimizes the build for the best performance. |
26 | 49 |
|
27 | | -The build is minified and the filenames include the hashes.\ |
28 | | -Your app is ready to be deployed! |
| 50 | +--- |
29 | 51 |
|
30 | | -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
| 52 | +## 🚀 Lancer le projet |
31 | 53 |
|
32 | | -### `npm run eject` |
| 54 | +### Installation des dépendances |
33 | 55 |
|
34 | | -**Note: this is a one-way operation. Once you `eject`, you can't go back!** |
| 56 | +```bash |
| 57 | +npm install |
| 58 | +``` |
35 | 59 |
|
36 | | -If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
| 60 | +Démarrage en mode développement |
| 61 | +```bash |
| 62 | +npm run dev |
| 63 | +``` |
37 | 64 |
|
38 | | -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. |
| 65 | +Build de production |
| 66 | +```bash |
| 67 | +npm run build |
| 68 | +``` |
39 | 69 |
|
40 | | -You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. |
| 70 | +### 🔐 Authentification & rôles |
41 | 71 |
|
42 | | -## Learn More |
| 72 | +- Authentification via JWT (API backend) |
| 73 | +- Rôles : |
| 74 | + - admin |
| 75 | + - editor |
| 76 | +- Accès restreint au back-office selon les droits |
43 | 77 |
|
44 | | -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
| 78 | +### 🎨 UX / UI |
45 | 79 |
|
46 | | -To learn React, check out the [React documentation](https://reactjs.org/). |
| 80 | +Les maquettes de référence sont disponibles dans : |
47 | 81 |
|
48 | | -### Code Splitting |
| 82 | +```bash |
| 83 | +docs/maquettes/ |
| 84 | +``` |
49 | 85 |
|
50 | | -This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) |
| 86 | +⚠️ Toute évolution UI doit respecter : |
| 87 | +- La charte graphique existants |
| 88 | +- Les maquettes validées |
| 89 | +- L’accessibilité (contrastes, lisibilité) |
51 | 90 |
|
52 | | -### Analyzing the Bundle Size |
| 91 | +### 🧹 Qualité de code |
53 | 92 |
|
54 | | -This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) |
| 93 | +Ce projet est soumis à : |
| 94 | +- ESLint |
| 95 | +- Prettier |
| 96 | +- pre-commit hooks |
55 | 97 |
|
56 | | -### Making a Progressive Web App |
| 98 | +Les linters sont exécutés : |
| 99 | +- Avant chaque commit |
| 100 | +- Lors des pipelines CI |
57 | 101 |
|
58 | | -This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) |
| 102 | +### 🔗 Liens utiles |
59 | 103 |
|
60 | | -### Advanced Configuration |
| 104 | +- 📐 Maquettes : docs/maquettes/ |
| 105 | +- 📄 Cahier des charges : docs/cahier-des-charges/ |
| 106 | +- 🗺️ Cartographie : docs/cartographies/ |
| 107 | +- 🔁 Workflow Git : docs/workflow/ |
61 | 108 |
|
62 | | -This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) |
| 109 | +### 🧠 Bonnes pratiques |
63 | 110 |
|
64 | | -### Deployment |
| 111 | +- Composants petits et réutilisables |
| 112 | +- Pas de logique métier dans les composants UI |
| 113 | +- Appels API centralisés |
| 114 | +- Pas de données mockées en dur en production |
65 | 115 |
|
66 | | -This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) |
| 116 | +### 👥 Contribution |
67 | 117 |
|
68 | | -### `npm run build` fails to minify |
69 | | - |
70 | | -This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) |
| 118 | +Merci de lire CONTRIBUTING.md avant toute contribution. |
0 commit comments