From 20f66fa12522c55ec7d8d23ddfdebaf81e2bbbdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20=F0=9F=A6=84?= <43847817+codiflow@users.noreply.github.com> Date: Thu, 23 May 2024 22:28:42 +0200 Subject: [PATCH] Fixed commands for building from src --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 18bb441..6f8571a 100644 --- a/README.md +++ b/README.md @@ -42,24 +42,34 @@ Interested in contributing or customizing? Build Excalidraw Complete from source ```bash # Clone and prepare the Excalidraw frontend git clone https://github.com/PatWie/excalidraw-complete.git --recursive -cd excalidraw +cd ./excalidraw-complete/excalidraw + # git checkout tags/v0.17.3 -# Fix docker build -git remote add jcobol https://github.com/jcobol/excalidraw -git fetch jcobol -git checkout 7582_fix_docker_build +# Fix docker build (fix already implemented upstream) +# git remote add jcobol https://github.com/jcobol/excalidraw +# git fetch jcobol +# git checkout 7582_fix_docker_build + +# Adjust URLs inside of frontend.patch if you want to use a reverse proxy git apply ../frontend.patch cd ../ docker build -t exalidraw-ui-build excalidraw -f ui-build.Dockerfile docker run -v ${PWD}/:/pwd/ -it exalidraw-ui-build cp -r /frontend /pwd +git checkout firebase-patch ``` +(Optional) Replace `localhost:3002` inside of `main.go` with your domain name if you want to use a reverse proxy +(Optional) Change ip:port of Go webserver at the end of `main.go` if you want to customize it + Compile the Go application: ```bash go build -o excalidraw-complete main.go ``` +Declare environment variables if you want any (see section above) +Example: `STORAGE_TYPE=sqlite DATA_SOURCE_NAME=/tmp/excalidb.sqlite` + Start the server: ```bash