Template by Ryan Granquist
Microsoft SQL Server Management Studio
Prettier - Code formatter <- Set as default formatter
Path Intellisense
vscode-icons
- Open the .Client project folder in VS Code by clicking 'File' -> 'Open Folder' and selecting the .Client inside the cloned repository folder
- Open terminal with 'ctrl+`' The key left of 1
- Run the following commands:
npm install
- Open the .sln file in the root directory of the project in Visual Studio
- CD to return to the root directory and run the following commands:
This will run the database in a docker container and create the schema defined in the init.sql file
docker-compose up -d - Open Microsoft SQL Server Management Studio and connect to the database using the following credentials:
Use the same password as defined in your .env file
Server: localhost,1433 Login: sa Password: LocalPassword123 Encryption: Optional Trust Server Certificate: Yes
- Open the .sln file in the root directory of the project in Visual Studio
- Run the project with the Start button in Visual Studio
- Accept all certificates when prompted
- Create the service interface with the desired methods in the
Interfacesfolder - Create the service implmentation in the
ServiceImplementationfolder - Setup the dependency injection in the
Program.csfile following the existing example
When adding a new controller, follow these steps:
- Create a file in the Controllers folder ending with
Controller.cs - Be sure to have the class inherit from
ControllerBase - Include the
[ApiController]and[Route("[controller]")]attributes above the class name - IMPORTANT: Add your controller name to the
vite.config.tsfile in the client folder under theserver.proxysection- Failure to do so will result in all fetch request failing to the requested controller