- Deno version: ^1.7.0
- Adds
~/.deno/bin
path to your system or user'sPATH
environment variable
# for *nix and MacOS
export PATH="${PATH}:~/.deno/bin"
# for Windows
set PATH=%PATH%;%HOME%\.deno\bin
- Needs denon for debugging/live reloading
backend/
- backend componentscommon/
- shared scripts & source files, ex. model definitionsfrontend/
- frontend components
- APP_ENV: (dev|production)
- APP_HOST: (default:
0.0.0.0
) - APP_PORT: (default:
8080
) - APP_FRONT_URL: (default:
http://localhost:3000/
) - APP_FRONT_ORIGIN: Origin for CORS (default:
http://localhost:3000
)
yarn backend
# or:
# in /backend/
deno run --allow-env --allow-net --allow-read main.ts
# or for live-reload:
# in /backend/
denon start
yarn frontend
# or:
# in /frontend/
deno run --allow-env --allow-net --allow-read --allow-run main.ts -- build \
&& deno run --allow-env --allow-net --allow-read --allow-run main.ts -- --browse serve
# or for live-reload:
# in /frontend/
denon start