Skip to content

angelikakuleta/dotnet-rep-crime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

REP_CRIME.01

Web app capable of quick reporting crimes for exemplary citizens.

Business requirements

  • Every user can report a crime (as a post request or from web client)
  • Reported crime can be assigned to an police officer

Requirements

How to run?

# Clone this repo locally
git clone https://github.com/angelikakuleta/motorola-3rd-exam.git

Run the following command in the solution directory

# build services
docker-compose build

# create and start containers
docker-compose -f .\docker-compose.yml -f .\docker-compose.override.yml up

Then, navigate to one of the services

If you want to use functionality of sending email notification, run the following command in the REP_CRIME01.CrimeFeedback project directory

# enable secret storage
dotnet user-secrets init

# set secrets
dotnet user-secrets set "SMTPSettings:MailFrom" "<EMAIL_ADDRESS>"
dotnet user-secrets set "SMTPSettings:Host" "<SMTP_HOST>"
dotnet user-secrets set "SMTPSettings:Port" "<SMTP_PORT>"
dotnet user-secrets set "SMTPSettings:UserName" "<USERNAME_TO_YOUR_EMAIL_ACCOUNT>"
dotnet user-secrets set "SMTPSettings:Password" "<PASSWORD_TO_YOUR_EMAIL_ACCOUNT>"

Releases

No releases published

Packages

No packages published