This is a basic project which have functionalities like -Show products data, -Add new product -Edit product -Delete product
- Sql server must be installed on the system [(https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu) -> (for ubuntu)]
- Dotnet ef core and its tools must be installed on the system [(https://docs.microsoft.com/en-us/ef/core/cli/dotnet) -> (for ubuntu)]
- Add dotnet ef core to path [(export PATH=$PATH:/home/{username}/.dotnet/tools) -> (for ubuntu)]
- Clone this repo -- $ git clone https://github.com/tarun1081998/ProductModule.git
- navigate to "appsettings.json" file
- change the connectionstring in "appsettings.json" (change server, user id, password) according to your sql server.
- run following command
-- $ dotnet ef update database
-- $ dotnet run
Above command will start the api project - Navigate to "NunitTest" folder
- run the following command
-- $ dotnet test