From 6bf83cc053e8ecced3456b5f6c4428fd092c3bf7 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Tue, 3 May 2022 13:15:44 -0600 Subject: [PATCH] configure stub --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5909d29..56c57b6 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,51 @@ sudo apt install npm git clone git@spacecruft.org:retropilot/retropilot-client.git cd retropilot-client npm install - -vim src/config.js ``` +# Configure +Configure thang. + +``` +# Just use .env.local not src/config.js? +#vim src/config.js +vim .env.local +# Perhaps something like: + +REACT_APP_PUBLIC_URL=http://192.168.108.129:3000 +REACT_APP_API_URL=http://192.168.108.128:8080 +REACT_APP_WEBSITE_NAME="SpaceCruft RetroPilot Connect - Development" +``` + +Then open firewall on port `3000` if it is to be accessed remotely. + + +# Run +Run thang. + +``` +# Development +npm run start + +# Testing +npm test + +# Production +npm run build +``` + +# Use +Use thang. + +Go here in a browser on the same machine running: + +* http://192.168.108.129:3000/ + + +# Fix +CORS. + # Upstream This is forked from RetroPilot: