The playground lets you write denoflow online in a safe and shareable way.
This project forked from peterbartha/deno-playground , Thanks a lot!
.
└─ 📂 packages
├─ 📦 functions
└─ 📦 ui
Install deno:
curl -fsSL https://deno.land/install.sh | sh
Clone:
git clone [email protected]:denoflow/playground.git
Deploy server first:
sudo vim /etc/systemd/system/denoflow-playground-api.service
Config:
[Unit]
Description=Denoflow playground service
Wants=network-online.target
After=network-online.target nss-lookup.target
[Service]
Type=exec
Environment="PATH=/home/green/.deno/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
User=green
ExecStart=/home/green/.deno/bin/deno run --allow-run --allow-read=/tmp --allow-write=/tmp --allow-net --allow-env /home/green/playground/packages/functions/main.ts
Restart=on-failure
SyslogIdentifier=denoflow-playground-api
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now denoflow-playground-api.service
sudo systemctl status denoflow-playground-api
sudo journalctl -f -u denoflow-playground-api
sudo systemctl restart denoflow-playground-api
This project is licensed under MIT license.