Skip to content

Instantly share code, notes, and snippets.

@Nathan-Nesbitt
Nathan-Nesbitt / Angular-Run-Phone.sh
Created June 18, 2020 17:02
Get Android Phone ID and Run NativeScript Project on Phone
# Gets a list of devices connected
tns devices
# Runs on your phone with ID `deviceID`
tns run android --device=<deviceID>
@Nathan-Nesbitt
Nathan-Nesbitt / Angular-Run-VM.sh
Created June 18, 2020 16:58
Runs the angular application on your android VM
tns run android
@Nathan-Nesbitt
Nathan-Nesbitt / Install-Schematics.sh
Created June 18, 2020 16:13
Install NativeScript Angular Schematics
npm i -g @angular/cli
npm i -g @nativescript/schematics
@Nathan-Nesbitt
Nathan-Nesbitt / Install-NativeScript.sh
Created June 18, 2020 16:10
Installs and checks NativeScript
# To install NativeScript
npm install -g nativescript
# And to test the installation
tns
@Nathan-Nesbitt
Nathan-Nesbitt / Install-NPM.sh
Created June 18, 2020 03:13
Installs npm from aptitude
apt install npm
@Nathan-Nesbitt
Nathan-Nesbitt / Use-Node.sh
Created June 18, 2020 03:09
Selects the version of node to use
nvm use 12.16.3
@Nathan-Nesbitt
Nathan-Nesbitt / Install-NodeJS.sh
Created June 18, 2020 03:06
Install nodeJS version for Angular and NativeScript development
nvm install 12.16.3
@Nathan-Nesbitt
Nathan-Nesbitt / check-NVM.sh
Created June 18, 2020 03:04
Check to see if NVM is installed
nvm --version
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
bash install_nvm.sh
# Check to see if we have node and npm installed
node --version
npm --version
# We can then initialize our project using npm
npm init
# Installs the driver
npm install neo4j-driver