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 | shClone:
git clone git@github.com:denoflow/playground.gitDeploy server first:
sudo vim /etc/systemd/system/denoflow-playground-api.serviceConfig:
[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.targetsudo systemctl daemon-reloadsudo systemctl enable --now denoflow-playground-api.servicesudo systemctl status denoflow-playground-apisudo journalctl -f -u denoflow-playground-apisudo systemctl restart denoflow-playground-api
This project is licensed under MIT license.
