8 Commits
Johan ... main

Author SHA1 Message Date
2b1c2cbc32 Actualiser README.md 2025-08-05 09:21:38 +02:00
jleroy
e7342651f2 patch prod 2024-05-03 15:13:45 +02:00
jleroy
923b9c4579 patch prod 2024-05-03 14:32:04 +02:00
jleroy
7580d067cf patch prod 2024-05-03 14:29:19 +02:00
jleroy
aa0a02a6fc patch prod 2024-05-03 14:24:45 +02:00
jleroy
c28071b095 patch prod 2024-05-03 14:24:09 +02:00
Parpaillax
2d1e226cbc test 2024-05-03 13:57:04 +02:00
Parpaillax
68894784f2 test 2024-05-03 13:51:05 +02:00
3 changed files with 60 additions and 88 deletions

138
README.md
View File

@@ -1,93 +1,55 @@
# Enchere
# ENI-Encheres
**ENI-Encheres** est une application développée pour l'association **« Les objets sont nos amis »**. Cette plateforme web permet de céder des objets de seconde main **sans transaction financière**.
La valeur des articles est déterminée par un **système d'enchères basé sur un nombre de points**.
Les points sont **gagnés en vendant des objets**, puis peuvent être **utilisés pour acquérir d'autres objets**.
---
## 🛠 Fonctionnalités
| Itération | Importance | Catégorie | ID | Nom | Description |
|-----------|------------|---------------------------|-------|-----------------------------|-------------|
| 1 | 2000 | Gestion des utilisateurs | 1001 | Se connecter | En tant qu'utilisateur, je peux me connecter sur la plateforme Enchères.org avec un login (adresse mail ou pseudo) et un mot de passe. |
| 1 | 1900 | Gestion des utilisateurs | 1003 | Sinscrire | En tant quutilisateur, je peux minscrire sur la plateforme Enchères.org... (pseudo unique, mail, crédit initial de 100 points, redirection accueil). |
| 1 | 1800 | Navigation | 6002 | Page daccueil | La page daccueil liste les enchères, chargée par défaut si aucune ressource indiquée dans lURL. |
| 1 | 1750 | Gestion des utilisateurs | 1009 | Se déconnecter | Je peux me déconnecter et être ramené vers la page daccueil. |
| 1 | 1700 | Gestion des utilisateurs | 1006 | Afficher un profil | Affiche le profil dun utilisateur (pseudo, nom, email, etc.). |
| 1 | 1600 | Gestion des utilisateurs | 1007 | Modifier mon profil | Je peux modifier mon profil complet (y compris mot de passe). |
| 1 | 1500 | Gestion des utilisateurs | 1004 | Supprimer mon compte | Je peux supprimer mon compte et être déconnecté. |
| 1 | 1400 | Gestion des enchères | 2001 | Vendre un article | Décrire larticle, fixer prix de départ, dates denchères, modalités de retrait. |
| 1 | 1300 | Gestion des enchères | 2004 | Lister enchères déconnecté| Liste denchères filtrable sans être connecté (pas de détail visible). |
| 1 | 1200 | Gestion des enchères | 2005 | Lister enchères connecté | Liste des enchères en cours, gagnées, ou participées + ventes. |
| 1 | 1100 | Gestion des enchères | 2006 | Faire une enchère | Je peux enchérir si je dépasse lenchère actuelle et ai assez de points. |
| 1 | 1000 | Gestion des enchères | 2007 | Remporter une vente | Je deviens acquéreur si jai lenchère la plus haute à la fin. |
| 1 | 950 | Navigation | 6003 | Lien logo Encheres | Clique sur le logo → retour à la page daccueil si connecté. |
| 1 | 900 | Gestion des enchères | 2009 | Détail dune enchère | Voir les infos selon statut et rôle (vendeur ou acheteur). |
| 1 | 850 | Navigation | 6001 | Boutons navigateur | Rafraîchir ou revenir à la page précédente avec navigateur. |
| 2 | 800 | Responsive Web Design | 5001 | Version mobile | Fonctionnalités accessibles depuis smartphone. |
| 2 | 750 | Sécurité | 8001 | Sessions 5mn | Déconnexion auto après 5 minutes dinactivité. |
| 2 | 700 | Gestion des utilisateurs | 1002 | Se souvenir de moi | Sauvegarde du login pour éviter de le ressaisir. |
| 2 | 675 | Gestion des enchères | 2002 | Modifier une vente | Possible si la date de début denchère nest pas atteinte. |
| 2 | 650 | Gestion des enchères | 2003 | Annuler une vente | Possible si lenchère na pas commencé. |
| 2 | 600 | Gestion des enchères | 2008 | Photo pour la vente | Upload d'une image visible dans le détail de la vente. |
| 2 | 500 | Administration | 3001 | Supprimer utilisateurs | Ladmin peut supprimer des comptes. |
| 2 | 450 | Administration | 3002 | Désactiver un utilisateur | Ladmin peut désactiver un compte (toutes ses ventes et enchères annulées). |
| 2 | 400 | Gestion des utilisateurs | 1005 | Mot de passe oublié | Demande de réinitialisation, lien envoyé par mail. |
| 3 | 350 | Gestion des enchères | 2010 | Pagination | Affichage par page de 6 enchères, navigation avec pagination. |
| 3 | 300 | Multilingue | 9001 | Version anglaise | Choix entre français et anglais. |
| 3 | 250 | Journalisation | 7001 | Gestion des logs | Dev ou support a accès aux logs détaillés côté serveur. |
| 3 | 200 | Gestion des enchères | 2011 | Voir les enchérisseurs | Vendeur peut voir la liste des enchérisseurs triée par offre. |
| 3 | 150 | Administration | 3003 | Gestion catégories | Ladmin peut gérer les catégories darticles. |
| 3 | 100 | Notification par mail | 10001 | Notifier lachat | Envoi dun mail à la fin de lenchère à lacheteur. |
| 3 | 50 | Gestion des utilisateurs | 1008 | Achat de crédits | Je peux acheter des crédits. |
---
## Getting started
## 📚 Documentation
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
La documentation du projet comprend plusieurs documents de conception :
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
```
cd existing_repo
git remote add origin https://gitlab.com/marvin.epip/enchere.git
git branch -M main
git push -uf origin main
```
## Integrate with your tools
- [ ] [Set up project integrations](https://gitlab.com/marvin.epip/enchere/-/settings/integrations)
## Collaborate with your team
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
## Test and Deploy
Use the built-in continuous integration in GitLab.
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
***
# Editing this README
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
## Suggestions for a good README
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
## Name
Choose a self-explaining name for your project.
## Description
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
## Badges
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
## Visuals
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
## Installation
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
## Usage
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
## Support
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
## Roadmap
If you have ideas for releases in the future, it is a good idea to list them in the README.
## Contributing
State if you are open to contributions and what your requirements are for accepting them.
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
## Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
## License
For open source projects, say how it is licensed.
## Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
- **Document de vision** : présentation du projet, de ses objectifs, et une vision globale des fonctionnalités attendues.
- **Diagramme de classe du domaine** : structure des classes du projet.
- **Cycle de vie d'une vente** : explication des étapes d'une vente dans l'application.
- **Modèle physique** : script de création de la base de données.

View File

@@ -59,6 +59,9 @@ public class ArticleController {
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
if (!authentication.getName().equals("anonymousUser")) {
Article article = articleService.findArticleById(id);
if (article == null) {
return "redirect:/enchere";
}
UserProfil user = userService.utilisateurById(article.getUtilisateur());
Categorie cate = categorieService.findCategorieById(article.getNumCategorie());
Retrait retrait = retraitService.findByNumArticle(article.getId());

View File

@@ -4,6 +4,7 @@ import fr.eni.enchere.interceptor.UserInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@@ -26,4 +27,10 @@ public class MvcConfig implements WebMvcConfigurer {
registry.addInterceptor(userInterceptor);
}
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/images/**")
.addResourceLocations("classpath:/static/images/");
}
}