drawdb icon indicating copy to clipboard operation
drawdb copied to clipboard

Questions about DrawDB sharing

Open ScorpioSYX opened this issue 7 months ago • 5 comments

How to achieve sharing the same saved table view after installing DrawDB on the Linux system, and the sharing link reports an error and cannot be used in Linux.

ScorpioSYX avatar May 19 '25 02:05 ScorpioSYX

you need to set up the backend as well.

the backend handles the gist interactions which are necessary for sharing a diagram. so set up the backend and have the frontend point to it.

let me know if you have any questions

1ilit avatar May 19 '25 15:05 1ilit

Thank you for your answer. I've executed the following commands. How should I proceed next? git clone https://github.com/drawdb-io/drawdb-server.git cd drawdb-server npm install npm start

ScorpioSYX avatar May 22 '25 02:05 ScorpioSYX

did you set up the .env files? make sure to have those both on the server and drawdb, and you should be good

1ilit avatar May 22 '25 14:05 1ilit

I've added .env files to both projects with the content GITHUB_TOKEN = xxxxxxxx, and I've started both projects. However, I'm still unable to use the sharing feature. What could be the issue?

ScorpioSYX avatar May 23 '25 08:05 ScorpioSYX

the .env in drawdb should be in the following format:

VITE_BACKEND_URL=http://localhost:5000

the .env in drawdb-server should be in the following format:

CLIENT_URLS=http://localhost:5173,http://localhost:5174 # the urls you want cors to accept
MAIL_PASSWORD=some password # optional if not using emails
[email protected] # optional if not using emails
[email protected] # optional if not using emails
PORT=5000 
NODE_ENV=dev
GITHUB_TOKEN=ghp_my_gh_token

1ilit avatar May 23 '25 09:05 1ilit

So, in other words, you're asking whether the CLIENT_URLS configured in the .env file within ‌drawdb-server‌ should include other server IPs and the drawdb frontend address (e.g., http://xxxx:3000). ‌Is that correct?

ScorpioSYX avatar May 26 '25 02:05 ScorpioSYX

Do other servers' backends need to be started?

ScorpioSYX avatar May 26 '25 02:05 ScorpioSYX

So, in other words, you're asking whether the CLIENT_URLS configured in the .env file within ‌drawdb-server‌ should include other server IPs and the drawdb frontend address (e.g., http://xxxx:3000/). ‌Is that correct?

yes, it should include the frontend address

Do other servers' backends need to be started?

No just running drawdb-server is enough

1ilit avatar May 27 '25 15:05 1ilit

Feel free to reopen if you still have questions

1ilit avatar Jun 11 '25 22:06 1ilit