Skip to content

s8sato/works-stem-spa-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

works-stem-spa-auth

Under development:

  • implement password forgetting handler
  • check the production part of the Dockerfile
  • improve API hot reload speed

What's this

  • Baby of SPA with user authentication 👶
  • 1 command to get ready for dev
  • Hot reload (HMR) both client/server side
  • Prefix stem derives from stem cell, which has potential to be any organ

Demo

demo

Feature

  • 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

How to run

Prerequisites:

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:

dev_screen

docker-compose down

to finish today's work.

Thank you for reading!

See also my dev tips if you like.