2022-07-22 23:17:19 -04:00
# Alai Server
2023-01-25 20:51:45 -03:00
This is the server which will host the Alai site, API, and game downloads.
2022-07-22 23:17:19 -04:00
## Authors
- Christohper Cromer
- Martín Araneda Acuña
2022-07-22 23:20:43 -04:00
## License
The server is licensed under the [3-Clause BSD License ](LICENSE ).
2022-07-22 23:17:19 -04:00
## Backend API
The backend is written in *go* and uses gorm to handle its database schema.
## Game
2023-01-25 20:51:45 -03:00
The directory download should contain the binaries for Alai which will be exposed through nginx for downloading.
2022-07-22 23:17:19 -04:00
2022-07-22 23:20:43 -04:00
## Configure
Before the server can be built and run, a *.env* file should be created based on *.env.example* . If the server is going to be public facing, make sure to change all the secrets and passwords to make it more secure.
2022-07-22 23:17:19 -04:00
## Build and run
```
docker-compose up -d --build
```
## Stop the server
```
docker-compose down
2023-01-25 20:51:45 -03:00
```