-
Notifications
You must be signed in to change notification settings - Fork 2
Setup
How to setup the development environment!
We will use SourceTree to access the Git repository on Github.
- An intro to git https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners
- https://www.youtube.com/watch?v=1lBdlh3AGSc
- https://confluence.atlassian.com/get-started-with-sourcetree
This is the IDE that we will be using.
After installing VS Code and opening the project, it will prompt you to download and install Git, which you should do.
We use Node Version Manager to manage and install node version.
https://github.com/creationix/nvm
In a terminal in VS Code, in the project directory, run:
nvm install
nvm use
node -v
This uses the .nvmrc file in the project directory to specify the node version, so every developer uses the same version.
You should run nvm use each time you open a new terminal session.
If there is no .nvmrc file in the project directory you can use nvm with a specific version:
nvm install 10.15.3
nvm use 10.15.3
node -v
Or you can simply create the .nvmrc file containing:
10.15.3
We use 10.15.3 as it is the latest LTS (long term support) Version at the time of writing.
https://github.com/coreybutler/nvm-windows
Go to the Releases tab and download the Setup installer for the latest release.
NB: You will need to quit and relaunch VS Code in order to use nvm.
In a terminal in VS Code, in the project directory, run:
nvm install 10.15.3
nvm use 10.15.3
node -v
Note that nvm on Windows doesn't support the .nvmrc file.
-
nodewhich is the compiler / runner -
npmwhich is the package manager -
typescriptwhich is the TypeScript -> JavaScript transpiler -
ts-nodewhich handily joinstypescriptandnodetogether
First we install all of the package dependencies specified in package.json:
npm install
Remember to use nvm above to ensure that you have the right version of node before installing dependencies.
npm start