This is a tool for creating and managing virtual environments and entities within those environments. This intended to be used for game development, but can be used for other purposes as well.
A virtual environment is a space where entities can exist and interact with each other. This can be a 2D or 3D space, and can be as simple as a blank space or as complex as a fully realized world.
In Viron, a virtual environment is a 2D space where entities can exist and interact with each other. The environment is made up of a grid of cells, each of which can contain a number of entities. The behavior of the entities is up to the client application, which can define rules for how entities interact with each other and with the environment.
This project includes a dev container that you can use to develop and test the code in a consistent environment. To use the dev container, you will need to have Docker and Visual Studio Code installed on your machine. Once you have those installed, follow these steps:
- Make sure the Dev Container extension is installed in Visual Studio Code.
- Open the project in Visual Studio Code.
- Click on the green "Open a Remote Window" button in the bottom left corner of the window.
- Select "Reopen in Container" from the menu that appears.
- Visual Studio Code will now build the dev container and open the project inside it.
- You can now develop and test the code inside the dev container. Any changes you make will be reflected in the project on your local machine.
To run the unit tests, reopen the project in the dev container and run the following command:
mvn test
To generate a code coverage report, run the following command:
mvn jacoco:report
The code coverage report will be generated in the target/site/jacoco
directory. Open the index.html
file in a web browser to view the report.
To install the required dependencies, run the following command:
pip install -r requirements.txt
To run the unit tests, run the following command:
python3 -m pytest
To generate a code coverage report, run the following commands:
coverage run -m pytest
coverage report
The code coverage report will be generated in the terminal.
To test the API, you can use the Postman collection provided in the postman
directory. This collection contains a number of requests that you can use to interact with the API. See the README in the postman
directory for more information.
To start the application, run the following command:
docker compose up --build -d
The application will be available at http://localhost:8080
.
To stop the application, run the following command:
docker compose down