Go to Backend path
- Setup environment variables in appsettings.json or using user secrets
"JwtIssuerOptions": {
"Issuer": "tasque",
"Audience": "tasque",
"ValidFor": "1",
"Key": "BSA-2022-Tasque.Core"
},
"ConnectionStrings": {
"TasqueDb": "" // enter here our db connection string
},
"SendGridOptions": {
"ApiKey": "" // enter here SendGrid api key
},
"EmailConfirmationOptions": {
"Host": "", // enter here host ip. Default is: http://localhost:4200
"ConfirmationEndpoint": "/auth/confirm",
"PasswordResetEndpoint": "/auth/restore",
"SenderEmail": "", // enter here our email
"SenderName": "", // enter here our name
"TokenLifetime": 600
}
- Update database if it is not updated or invalid
dotnet ef database update --startup-project Tasque.Core.WebAPI --project Tasque.DAL
- Run project using vs studio or console
dotnet run --project Tasque.Core.WebAPI/Tasque.Core.WebAPI.csproj
Go to Frontend path
- Install or update all node modules
npm install
- Run project using this command in console
ng serve
-
After all these steps you can access our site by following http://localhost:4200/ path
-
Or to access Swagger follow http://localhost:5000/api/swagger/index.html