Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

SE-TINF22B6/CookHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CookHub



Project links

🔗 Documents to our project. Further documentation in our 🔗 Wiki
image image



How to start the backend ( Rider | Shell )

Warning

You need to have .NET 8 and iisexpress amd64 installed on your local system.


With Rider

  1. Open /Backend/Backend.sln with Rider
  2. Click the Run-button at the top right
  3. Wait till the Swagger UI opens in your browser

With Windows Power Shell

  1. Start Shell
  2. Insert the following commands:
cd C:\Users\[userName]\IdeaProjects\CookHub\Backend\API
dotnet run --launch-profile https --urls=https://localhost:44328/
  1. After successfull build and start open in browser the following url:
https://localhost:44328/swagger/index.html
  1. A certification problem could appear when the certificate isn't working as expected. Then you need to manually trust the certificate via console:
 dotnet dev-certs https --trust

Tip

If you'd like to use a script to start the backend create a .bat file and insert the code below. Mind to change "[userName]" with your actual local user name in windows and if you're not using "chrome" to change it too.


@echo off
cd C:\Users\[userName]\IdeaProjects\CookHub\Backend\API
start chrome https://localhost:44328/swagger/index.html
dotnet run --launch-profile https --urls=https://localhost:44328/
timeout /t 10 > nul



How to start the frontend ( Webstorm | IntelliJ )

  1. Open the Frontend folder in WebStorm / IntelliJ

  2. (If you need to install/update dependencies, run npm install in the terminal)

  3. Run npm start in the terminal

  4. Wait till the frontend opens in your browser

  5. Also to start the frontend via HTTPS you need to replace "npm start" with:

 ($env:HTTPS = "true") -and (npm start)

Caution

If it doesn't work -> Nick is to blame



Other useful links