Skip to content

Instantly share code, notes, and snippets.

Last active June 1, 2018 23:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Setup a new .NET Core 2.1 app for Mac OSX with React, Storybook, Jest
#Assumes you have the .NET SDK 2.1 for Mac already installed
#Use Homebrew to install packages
/usr/bin/ruby -e "$(curl -fsSL"
#Use nvm to manage node versions
brew install nvm
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bash_profile
echo '. "/usr/local/opt/nvm/"' >>~/.bash_profile
nvm install v10.3.0
nvm use default
#install yarn independent of version of node being used
brew install yarn --without-node
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