Under development:
- implement password forgetting handler
- check the production part of the Dockerfile
- improve API hot reload speed
- Baby of SPA with user authentication 👶
- 1 command to get ready for dev
- Hot reload (HMR) both client/server side
- Prefix
stem
derives fromstem cell
, which has potential to be any organ
- Elm & Rust: fast, accurate, safe development and production
- Docker container dev: portability & reproducibility
- Email invitation and identification
- Cookie authentication
- No navigation: single URL & no browser back/forward
Prerequisites:
- Docker & Docker Compose
- git
- bash
Enter the command as follows to access http://localhost:8080
APP_NAME='my_spa' &&
git clone https://github.com/satu-n/works-stem-spa-auth.git $APP_NAME &&
cd $APP_NAME &&
bash init.sh $APP_NAME \
'new!database!password******' \
'SparkPost-API-KEY&==' \
'sending.email.address@my.domain.com' &&
unset APP_NAME &&
docker-compose run --rm -e CREATE=true -u "$(id -u $USER):$(id -g $USER)" web &&
docker-compose up -d &&
docker-compose logs -f
Configure 4 'single quoted params
'.
My actix-web learning log may help you.
When the containers are up, source code updates will be reflected automatically.
The dev screen looks like this:
docker-compose down
to finish today's work.
See also my dev tips if you like.