Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Setup a new .NET Core 2.1 app for Windows with React, Storybook, Jest
#Assumes you have the .NET SDK 2.1 for Windows already installed
#Use Chocolatey to install packages, run this script from Administrator Powershell
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString(''))
#Use nvm to manage node versions
choco install -y nvm
nvm use default
#install yarn independent of version of node being used
choco install -y yarn
yarn global add @storybook/cli
mkdir sampleApp
cd sampleApp
dotnet new react
cd ClientApp
yarn add --dev react-test-renderer
#Do `../dotnet run` to run app, `yarn test` to run Jest tests or `yarn start storybook` to view stories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment