Skip to content

Latest commit

Β 

History

History
95 lines (68 loc) Β· 2.38 KB

File metadata and controls

95 lines (68 loc) Β· 2.38 KB

Developer Setup

This repo is a Monorepo. Run helper scripts using npm-scripts.

Prerequisites

dotnet tools

dotnet tool install --global dotnet-ef

Installation

  • Windows: use Windows PowerShell as Admin
  • macOS: use zsh or bash
# clone the repo
git clone https://github.com/timokluser-dev/GBS_MyPerformance.git
cd GBS_MyPerformance
git checkout master

# copy .sample files
cp GBS_MyPerformance/appsettings.Development.sample.json GBS_MyPerformance/appsettings.Development.json
cp GBS_MyPerformance/appsettings.sample.json GBS_MyPerformance/appsettings.json

# activate node version
nvm install $(cat .nvmrc)
nvm use $(cat .nvmrc)

# install dependencies
npm install
npm run clientapp:install
# if failed: cd ./GBS_MyPerformance/ClientApp ; npm install ; cd ../..

# open 'Docker Desktop'
# Windows: make sure that linux containers are selected

# start containers
npm run docker:up

# run migrations
dotnet ef database update -p GBS_MyPerformance

# start visual studio from terminal
npm run win:vs # npm run mac:vs

# install certificates
dotnet dev-certs https --clean
dotnet dev-certs https --trust

Running

The following command starts both, BE & FE.

npm run backend:start

➑️ https://localhost:5001

Developing

When doing changes to the BE & FE.

# start visual studio from terminal
npm run mac:vs
npm run win:vs

# start with auto reload
npm run backend:start-dev

➑️ https://localhost:5001

❔ Questions

➑️ Contact timo.kluser@edu.gbssg.ch