Project implements a game with rules based on battleship game, program randomly places ships on two boards and simulates the gameplay between 2 players.
Project has been written using N-tier architecture, as well called Layered Architecture. But also have some CleanArchitecture features. User interface is created in VueJs as single page application and communicate with api using HTTP Request Methods.
Solution is divided to 4 projects. Backend part is written in .NET 6 and uses entity framework core with in memory database. Database seed is performed on application startup. Frontend part is written in VueJS 3.
Project | Description |
---|---|
Battleship.UI | User interface - rest api and vue spa project |
Battleship.Core | Business Logic project |
Battleship.Data | Data Access Layer project |
Battleship.UnitTests | Unit Tests project |
- Clone repository
- Open cloned repository folder and change directory to ./Battleship.UI/
- Run command
dotnet run
and wait for backend to build - Open url https://localhost:7284/ and wait for frontend to build
- You can use the app