setup stub
parent
fb9fadf67f
commit
cab8462dd8
40
README.md
40
README.md
|
@ -1,6 +1,46 @@
|
||||||
# retropilot-server
|
# retropilot-server
|
||||||
This is a lesser fork of upstream retropilot-server.
|
This is a lesser fork of upstream retropilot-server.
|
||||||
|
|
||||||
|
# Install
|
||||||
|
|
||||||
|
```
|
||||||
|
# Do as retropilot user
|
||||||
|
adduser retropilot
|
||||||
|
sudo su - retropilot
|
||||||
|
|
||||||
|
|
||||||
|
# Database / Postgres
|
||||||
|
sudo apt install postgresql
|
||||||
|
sudo -u postgres psql -c "CREATE DATABASE retropilot;"
|
||||||
|
sudo -u postgres psql -c "CREATE USER retropilot WITH password 'passwurd';"
|
||||||
|
sudo -u postgres psql -c "GRANT ALL privileges ON DATABASE retropilot TO retropilot;"
|
||||||
|
# Lookie:
|
||||||
|
sudo -u postgres psql
|
||||||
|
|
||||||
|
# As retropilot user
|
||||||
|
cat sql/create_tables.sql | psql -U retropilot -d retropilot
|
||||||
|
# take a look
|
||||||
|
psql -U retropilot -d retropilot
|
||||||
|
# pg commands, ala
|
||||||
|
\dT
|
||||||
|
|
||||||
|
|
||||||
|
# Install deps
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install npm
|
||||||
|
|
||||||
|
|
||||||
|
# Clone fork
|
||||||
|
git clone git@spacecruft.org:retropilot/retropilot-server.git
|
||||||
|
cd retropilot-server
|
||||||
|
|
||||||
|
# Build thang
|
||||||
|
npm install
|
||||||
|
|
||||||
|
# missing?
|
||||||
|
#cp config.sample.js config.js
|
||||||
|
```
|
||||||
|
|
||||||
# Upstream
|
# Upstream
|
||||||
This is forked from RetroPilot:
|
This is forked from RetroPilot:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue