project made with @Tractorou24 and @Tartoo for the end of year project during the bachelor year 2 (2021/2022).
- Presentation
- How to open the project
- How to run the project
- How to run the Unit tests
- How to automatically deploy the solution
This project is based on our development project for our end of bachelor 2 at Ynov.
This project is a solution to set up an API accessible directly from the game, allowing access for example to our list of planes or to the results of the matches made in the game.
The project contains:
- An API accessible by URL.
- A GitHub pull request system.
- A Linter commit for GitHub.
- A CICD system integrated into the project.
- Unit tests.
- An automatic deployment system with GitHub secrets.
1 - Clone the git repository to your computer with the following command :
git clone [email protected]:LeoSery/Flight-Simulator-Unity3D.git
or
git clone https://github.com/LeoSery/Flight-Simulator-Unity3D.git
2 - Open the solution with Visual Studio 2022.
dotnet run
or click on "Local Windows Debugger" button in Visual Studio.
dotnet test
or use the "Test Explorer" in Visual Studio.
-
Fork the GitHub repository.
-
Setup the GitHub secrets :
- APP_SETTINGS_FILE : appsetting.json > database creditencials
- REMOTE_HOST : Server IP or Domain name
- REMOTE_PORT : Server SSH port
- REMOTE_SSH_KEY : Private Key for server access.
- REMOTE_TARGET : API files folder
- REMOTE_USER : SSH User
-
Add the "fsapi" service to execute
dotnet run FlightSimulator.dll
inside the remote target. -
Setup Apache reverse proxy in port 5000.