mirror of
				https://github.com/zyphlar/doorlock.git
				synced 2024-04-03 21:36:03 +00:00 
			
		
		
		
	Update docs
This commit is contained in:
		
							parent
							
								
									b1b52ac671
								
							
						
					
					
						commit
						6b6d8fcc7c
					
				@ -18,12 +18,12 @@
 | 
			
		||||
On the RPI:
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
# Change to "sudo" user
 | 
			
		||||
sudo su
 | 
			
		||||
 | 
			
		||||
# Install nvm
 | 
			
		||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
 | 
			
		||||
 | 
			
		||||
# Install the USB relay driver
 | 
			
		||||
# sudo apt-get install usbrelay
 | 
			
		||||
 | 
			
		||||
# Install forever
 | 
			
		||||
npm i -g forever
 | 
			
		||||
 | 
			
		||||
@ -48,7 +48,7 @@ Follow the [install from source guide for node-hid](https://github.com/node-hid/
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
npm install -g node-gyp
 | 
			
		||||
sudo apt install build-essential git libudev-dev gcc-4.8 g++-4.8 libusb-1.0-0 libusb-1.0-0-dev
 | 
			
		||||
apt install build-essential git libudev-dev gcc-4.8 g++-4.8 libusb-1.0-0 libusb-1.0-0-dev
 | 
			
		||||
export CXX=g++-4.8
 | 
			
		||||
npm install node-hid --build-from-source
 | 
			
		||||
```
 | 
			
		||||
@ -58,6 +58,7 @@ You should now be able to view the app at
 | 
			
		||||
Place this at the bottom of your `~/.bashrc` file:
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
alias node='$NVM_BIN/node'
 | 
			
		||||
forever start ~/doorlock/src/server.js
 | 
			
		||||
chromium-browser --kiosk localhost:3000
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user