This repo is a Monorepo. Run helper scripts using npm-scripts.
- Git
- Windows: https://git-scm.com/download/win
- macOS: https://git-scm.com/download/mac
- Node.js - Version 16.13.0
- dotnet SDK - Version 3.1.416
- Docker Desktop
dotnet tool install --global dotnet-ef- Windows: use
Windows PowerShellas Admin - macOS: use
zshorbash
# 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 --trustThe following command starts both, BE & FE.
npm run backend:startβ‘οΈ https://localhost:5001
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
β‘οΈ Contact timo.kluser@edu.gbssg.ch