Before this, make sure a redis-server already running on 127.0.0.1:6379
sudo apt python3-pip
pip3 install flask redis --user
python3 app.py &
python3 shared.py &
# running
- access
localhost:6969
- try to click
restricted page
(for proof if user hasn't login) - input username
kuda
& passwordkuda
- click login
- run both
app.py
andshared.py
- access
localhost:3002
to ensure you aren't logged in - access
locahost:3001
to login - after logged in, try to access
localhost:3002
again - the page should return "SUKSES LOGIN!"