Yet another distributed authoring environment built with deno
2.5K
distributed authoring environment built with deno for the web
demo site: https://danoweb.site/
?mode=edit query parameter -- どのページも URL 末尾に ?mode=edit をつけると編集できますUSER_PASSWORD) can save the edits to update the served files (ask me if interested) -- 編集結果をファイルに書き戻すには USER_PASSWORD が必要ですdeno https://danoweb.site/index.ts -- the code can be edited at https://danoweb.site/index.ts?mode=edit.env file accordinglyheroku config:push to save .env content as config varsgit push to make the project publicgit clone https://github.com/arcatdmz/danoweb.git
cd danoweb
vi ./server/.env
heroku create <your app name>
heroku stack:set container
heroku config:push -f ./server/.env
git push heroku master
.env file accordinglygit clone https://github.com/arcatdmz/danoweb.git
cd danoweb
vi ./server/.env
docker build . -t danoweb
docker build . --file Dockerfile.local -t danoweb:local
docker run --name danoweb -v ./public:/work/server/public -p 8000:8000 danoweb:local
.env file in ./server/ -- all the values except for USER_PASSWORD are related to firebase cand can be retrieved from the websiteAPI_KEY={YOUR_FIREBASE_API_KEY}
AUTH_DOMAIN={YOUR_FIREBASE_AUTH_DOMAIN}
DATABASE_URL={YOUR_FIREBASE_DATABASE_URL}
PROJECT_ID={YOUR_FIREBASE_PROJECT_ID}
STORAGE_BUCKET={YOUR_FIREBASE_STORAGE_BUCKET}
MESSAGING_SENDER_ID={YOUR_MESSAGING_SENDER_ID}
APP_ID={YOUR_APP_ID}
DATABASE_PREFIX={PATH_PREFIX_FOR_YOUR_DATABASE(optional)}
USER_PASSWORD={PASSWORD_FOR_AUTHENTICATION}
PORT for every deploy)USER_DIR=./public
HOST=127.0.0.1
PORT=8000
deno (tested with v1.7.1)yarn) -- this can be skipped since the built files are included in the repocd client/
yarn install
yarn build
start the server with deno run (use deno without run for deno below v0.4.0)
cd server/
deno run --allow-env --allow-net --allow-read --allow-write --unstable server.ts
or yarn
cd server/
yarn start
Content type
Image
Digest
Size
73.8 MB
Last updated
over 5 years ago
docker pull arcatdmz/danoweb