Start your postgresql server at 0.0.0.0:5432
. Then run:
docker run -e HOST="0.0.0.0" \
-e POSTGRES__HOST="host.docker.internal" \
-e POSTGRES__USER="<postgres username>" \
-e POSTGRES__PASSWORD="<postgres password>" \
-e POSTGRES__DBNAME="<database name>" \
-e MAIL__FROM="<address to send email>" \
-e MAIL__USERNAME="<smtp username>" \
-e MAIL__PASSWORD="<smtp password>" \
-e MAIL__HOST="<smtp server host>" \
-p 8080:80 -d buttercrab/web-mighty
Go to localhost:8080 and have fun!
- install rust
- install wasm-pack
- install npm
- install and start your postgres server
- make
server.toml
based fromserver.sample.toml
- run
npm i && npm run build
- run
./build/bin/server
- do 1 ~ 5 from above
- run
npm i && npm run build-watch
- run
./build/bin/server
- run
npx webpack -w
in other terminal
For every change, webpack will rebuild your js code and server will catch changes.