|
|
## Concepts métiers
|
|
## Domain-specific concepts
|
|
|
|
|
|
|
|
De nombreux concepts métiers sont utilisés pour construire une offre de transport : ligne, itinéraires, missions... Ceux ci sont explicités dans le document [données métiers](https://github.com/af83/chouette-core/wiki/Data-Models).
|
|
A number of domain-specific concepts are used to describe a transport offer (including lines, routes, journey patterns, etc.). These are explained in the [Data Models](https://github.com/af83/chouette-core/wiki/Data-Models) document.
|
|
|
|
|
|
|
|
## Architecture
|
|
## Architecture
|
|
|
|
|
|
|
|
TODO : Add high level architecture diagram
|
|
TODO: Add high level architecture diagram
|
|
|
|
|
|
|
|
Des vues détaillées des différentes parties de l'application sont visibles dans la [page des diagrammes de classe](https://github.com/af83/chouette-core/wiki/Class-Diagram)
|
|
Detailed diagrams of the different parts of the application are available on the [Class Diagram](https://github.com/af83/chouette-core/wiki/Class-Diagram) page.
|
|
|
|
|
|
|
|
## Github
|
|
## GitHub
|
|
|
|
|
|
|
|
Le travail principal de développement se fait dans les sources :
|
|
The main development work happens in these repositories:
|
|
|
|
|
|
|
|
* [application Rails](https://github.com/af83/).
|
|
* [Rails application](https://github.com/af83/).
|
|
|
* [application Java](https://github.com/af83/).
|
|
* [Java application](https://github.com/af83/).
|
|
|
|
|
|
|
|
Les commits dans l'historique git doivent au maximum éviter de contenir des commits de merge. Les cas pratiques suivants expliquent le meilleure façon de procéder pour se mettre à jour :
|
|
Merge commits should be avoided. Use the following Git commands to get the latest from `master`.
|
|
|
|
|
|
|
|
Utilisateur sur une branche voulant mettre à jour sa branche
|
|
To update a local feature branch:
|
|
|
|
|
|
|
|
```sh
|
|
```sh
|
|
|
git pull origin master --rebase
|
|
git pull origin master --rebase
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
Utilisateur sur une branche voulant mettre à jour par rapport à la branche master
|
|
To update a remote feature branch:
|
|
|
|
|
|
|
|
```sh
|
|
```sh
|
|
|
// Solution la plus propre à tester en premier
|
|
# Cleaner method. Try this first.
|
|
|
git rebase master
|
|
git rebase master
|
|
|
git push -f origin my_branch
|
|
git push -f origin my_branch
|
|
|
|
|
|
|
|
// Solution plus simple pour gérer une fusion plus complexe
|
|
# Simpler method when dealing with a complex merge.
|
|
|
git merge master
|
|
git merge master
|
|
|
git push origin my_branch
|
|
git push origin my_branch
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
## Configuration des applications
|
|
## Application configuration
|
|
|
|
|
|
|
|
* [Activation de fonctionnalites](https://github.com/af83/chouette-core/wiki/Optionnal-Features)
|
|
* [Optional Feature flags](https://github.com/af83/chouette-core/wiki/Optionnal-Features)
|
|
|
* Gestion des policy TODO
|
|
* Policy management (TODO)
|
|
|
|
|
|
|
|
## Règles de codage Rails
|
|
## Rails code rules
|
|
|
|
|
|
|
|
* [Ecriture d'une migration](https://github.com/af83/chouette-core/wiki/Rails-migrations)
|
|
* [Writing a migration](https://github.com/af83/chouette-core/wiki/Rails-migrations)
|
|
|
* [Ecriture d'un modèle](https://github.com/af83/chouette-core/wiki/Rails-models)
|
|
* [Writing a model](https://github.com/af83/chouette-core/wiki/Rails-models)
|
|
|
* [Ecriture d'un controlleur](https://github.com/af83/chouette-core/wiki/Rails-Controller)
|
|
* [Writing a controller](https://github.com/af83/chouette-core/wiki/Rails-Controller)
|
|
|
* [Ecriture d'une vue](https://github.com/af83/chouette-core/wiki/Rails-views)
|
|
* [Writing a view](https://github.com/af83/chouette-core/wiki/Rails-views)
|
|
|
* [Ecriture d'une spec TODO](https://github.com/af83/chouette-core/wiki/Rails-spec)
|
|
* [Writing a spec (TODO)](https://github.com/af83/chouette-core/wiki/Rails-spec)
|
|
|
* [Ecriture d'une policy TODO](/code_rules/policy.md)
|
|
* [Writing a policy (TODO)](/code_rules/policy.md)
|
|
|
* [Ecriture d'une feature TODO](/code_rules/feature.md)
|
|
* [Writing a feature (TODO)](/code_rules/feature.md)
|
|
|
* [Gestion I18n](https://github.com/af83/chouette-core/wiki/Rails-I18n) |
|
* [I18n](https://github.com/af83/chouette-core/wiki/Rails-I18n) |