Skip to content

FrederikBertelsen/Chirp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

535 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chirp

Repo for groupwork for the course "Analysis, Design and Software Architecture(BSANDSA1KU)" at ITU in fall 2023.

report.md

How to make Chirp! work locally

SQLite

First, clone the repository from github to local storage. Do so however you prefer. Navigate to /Chirp/src/Chirp.Web, and run:

dotnet run

This starts Chirp. A localhost link will be written in the terminal. Follow it, and you are now on a locally hosted Chirp.

SQL Server

We ended with SQLite as we ran out of credits. For the last commit that works with SQL Server, see: commit.

First, clone the repository from github to local storage. Do so however you prefer. Then start a docker container with a SQL Server database

 docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=%Password123' -p 1433:1433 --name sql_server_container -d mcr.microsoft.com/mssql/server

Next, navigate to /Chirp/src/Chirp.Web. Here you set the user secret required to connect you to your database:

dotnet user-secrets set "ConnectionStrings:Chirp" "Server=tcp:localhost,1433;Initial Catalog=Chirp SQL Database;Persist Security Info=False;User ID=sa;Password=%Password123;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;" --id id

Both of these are run to make the SQL database work. Stay in /Chirp/src/Chirp.Web, and run:

dotnet run

This starts Chirp. A localhost link will be written in the terminal. Follow it, and you are now on a locally hosted Chirp.

How to run test suite locally

Run command in repository root:

dotnet test

About

Analysis, Design and Software Architecture - ITU - fall 2023

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors