Lesser fork of retropilot-server https://spacecruft.org/retropilot/retropilot-server/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jeff Moe 751ec8388b mv ss 7 months ago
.github ci: disable running tests (broken) 9 months ago
data/nginx revert 8 months ago
environment Revert "uno reverse" 8 months ago
pics screenshot 7 months ago
sql fix(worker): round drive_segments.distance_meters to int 9 months ago
src lint 7 months ago
static revert 8 months ago
test build router for each endpoint 9 months ago
.babelrc.json cleanup 9 months ago
.dockerignore Revert "Updated .dockerignore" 8 months ago
.editorconfig chore: add .editorconfig 9 months ago
.env copy.sample Add settings api, update models 7 months ago
.env.sample remove athena 8 months ago
.eslintignore cleanup 9 months ago
.eslintrc.json build router for each endpoint 9 months ago
.gitignore add 'development' environment and improve documentation 8 months ago
Dockerfile bump cabana 9 months ago
LICENSE Initial commit 2 years ago
README-upstream.md mv upstream README 7 months ago
README.md mv ss 7 months ago
ecosystem.config.js big refactor - move into src/worker and src/server 9 months ago
init-letsencrypt.sh revert 8 months ago
package-lock.json need esm 7 months ago
package.json need esm 7 months ago

README.md

retropilot-server

This is a lesser fork of upstream retropilot-server.

Screenshot

Image

Install

Docs for Debian stable (bullseye/11).

# 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
# Perhaps:
cp -p .env.sample .env
vim .env

# Looks like this is needed ?
npm install esm

# In one term run:
node -r esm src/server

# In another term run:
node -r esm src/worker

# Firewall, open port 8080

Use

Go to http://192.168.1.1:8080 in your browser, using the correct IP.

Create an account. Check server.log for the token, which appears to be verysecrettoken by default. Then log in with that.

Upstream

This is forked from RetroPilot:

See also README-upstream.md.