mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-28 01:30:17 +01:00
Restructuration of the project folders
This commit is contained in:
29
server/docs/TODO.md
Normal file
29
server/docs/TODO.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# TODO
|
||||
|
||||
## Tâches
|
||||
|
||||
- [x] Clarifier qui est qui sur l'interface.
|
||||
- [x] Clarifier qui chasse qui sur l'interface.
|
||||
- [x] Ajouter timer du rétrécissement des zones.
|
||||
- [x] Pouvoir changer les paramètres du jeu pendant une partie.
|
||||
- [x] Implémenter les wireframes
|
||||
- [x] Ajouter une région par défaut si pas de position
|
||||
- [x] Focus une team cliquée
|
||||
- [x] Refaire les flèches de chasse sur la map
|
||||
- [x] Pouvoir définir la zone de départ de chaque équipe
|
||||
- [x] Nommer les polygons par des lettres de l'alphabet
|
||||
- [x] Plein écran
|
||||
- [ ] Pouvoir faire pause dans la partie
|
||||
- [ ] Mettre en évidence le menu paramètre
|
||||
- [ ] Afficher un feedback quand un paramètre est sauvegardé
|
||||
- [ ] Améliorer le système de création zone (cercle et polygone)
|
||||
- [ ] Voir les traces et évènements des teams
|
||||
- [ ] Voir l'incertitude de position des teams
|
||||
- [ ] Faire un menu quand on arrive sur la traque
|
||||
- [ ] Pouvoir load des paramètres enregistrés
|
||||
- [ ] Penser l'affichage en fin de traque
|
||||
|
||||
## Autres idées
|
||||
|
||||
- Améliorer l'accessibilité (traduction anglaise notamment).
|
||||
- Améliorer l'UI.
|
||||
46
server/docs/setup.md
Normal file
46
server/docs/setup.md
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
lang: en-GB
|
||||
---
|
||||
|
||||
# Set up server
|
||||
|
||||
This tutorial will help you to start the servers for development or for production.
|
||||
|
||||
## Table of Contents
|
||||
* [Docker](#docker) : Explaination and commands
|
||||
* [Start server](#start-server) : Development and deployment
|
||||
|
||||
## Docker
|
||||
|
||||
The server and the website use Docker. When the containers are up, you can access the website by searching for localhost on the web.
|
||||
|
||||
Useful docker commands :
|
||||
|
||||
- Create the containers : `docker compose -f {your-file.yaml} up`
|
||||
- Remove the containers : `docker compose down`
|
||||
- Add the `-d` flag to create the containers in the background
|
||||
- Stop the running containers : `docker compose stop`
|
||||
- Start the stopped containers : `docker compose start`
|
||||
- See all containers : `docker ps -a`
|
||||
- See all images : `docker images`
|
||||
- Remove an image : `docker rmi IMAGE_ID`
|
||||
|
||||
## Start server
|
||||
|
||||
### Development
|
||||
|
||||
Use `docker compose -f docker-compose.dev.yaml up` to start the containers of the server in development mode so the changes made in the project take effect immediately. You can access the website by searching for `localhost` in your browser.
|
||||
|
||||
### Deployment
|
||||
|
||||
#### Update the server
|
||||
|
||||
To update the server, you have to build the images of the containers on your computer and then push them on the docker of `git.rezel.net`. If it isn't the case, you have to login to the docker of git.rezel.net. To do that, go on `git.rezel.net` and create an access token for your account allowing writing package, repository and user, and save the token password. Then on your machine run `docker login git.rezel.net` and connect with your token password. Now, you can build and push the latest images on the remote by running `./scripts/build_push_images.sh`.
|
||||
|
||||
#### Access the LXC container
|
||||
|
||||
The server run on a rezel LXC container you can access [here](https://hosting.rezel.net/vms). Ask persmissions to an admin of the container to be able to connect to it via ssh : `ssh admin@2a09:6847:fa10:1410::207`.
|
||||
|
||||
#### Start the server
|
||||
|
||||
Run `docker compose -f docker-compose.yaml up -d` on the LXC container to start the containers. The website will be accesible on `traque.rezel.net`.
|
||||
974
server/docs/wireframes/main.svg
Normal file
974
server/docs/wireframes/main.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 1.3 MiB |
662
server/docs/wireframes/parameters_placement.svg
Normal file
662
server/docs/wireframes/parameters_placement.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 320 KiB |
655
server/docs/wireframes/parameters_zone.svg
Normal file
655
server/docs/wireframes/parameters_zone.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 320 KiB |
Reference in New Issue
Block a user