Questions about DrawDB sharing
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.
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
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
did you set up the .env files? make sure to have those both on the server and drawdb, and you should be good
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?
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
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?
Do other servers' backends need to be started?
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
Feel free to reopen if you still have questions