Lesser fork of retropilot-server https://spacecruft.org/retropilot/retropilot-server/
 
 
 
Go to file
Jeff Moe 6a16f55b19 need esm 2022-05-02 22:23:54 -06:00
.github ci: disable running tests (broken) 2022-03-26 23:43:51 +00:00
data/nginx revert 2022-04-20 20:15:06 +01:00
environment Revert "uno reverse" 2022-04-26 14:09:39 +01:00
sql fix(worker): round drive_segments.distance_meters to int 2022-03-24 22:52:39 +00:00
src lint 2022-05-01 23:35:55 +01:00
static revert 2022-04-20 20:15:06 +01:00
test build router for each endpoint 2022-03-22 15:14:08 +00:00
.babelrc.json cleanup 2022-03-21 13:13:22 +00:00
.dockerignore Revert "Updated .dockerignore" 2022-04-13 15:58:58 +01:00
.editorconfig chore: add .editorconfig 2022-03-12 17:14:41 +00:00
.env copy.sample Add settings api, update models 2022-05-01 23:08:16 +01:00
.env.sample remove athena 2022-04-20 18:46:39 +01:00
.eslintignore cleanup 2022-03-21 13:13:22 +00:00
.eslintrc.json build router for each endpoint 2022-03-22 15:14:08 +00:00
.gitignore add 'development' environment and improve documentation 2022-04-14 15:51:13 +01:00
Dockerfile bump cabana 2022-03-26 16:19:33 +00:00
LICENSE Initial commit 2021-05-16 04:24:48 +02:00
README-upstream.md mv upstream README 2022-05-02 20:26:31 -06:00
README.md need esm 2022-05-02 22:23:54 -06:00
ecosystem.config.js big refactor - move into src/worker and src/server 2022-03-21 10:54:50 +00:00
init-letsencrypt.sh revert 2022-04-20 20:15:06 +01:00
package-lock.json need esm 2022-05-02 22:23:54 -06:00
package.json need esm 2022-05-02 22:23:54 -06:00

README.md

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
# 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

Upstream

This is forked from RetroPilot:

See also README-upstream.md.