https://github.com/altwalker/django-auth
The application is built as a demo to showcase how to write tests in python and execute them with AltWalker.
https://github.com/altwalker/django-auth
altwalker demo django python
Last synced: 3 months ago
JSON representation
The application is built as a demo to showcase how to write tests in python and execute them with AltWalker.
- Host: GitHub
- URL: https://github.com/altwalker/django-auth
- Owner: altwalker
- License: mit
- Created: 2022-11-01T16:00:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-02T22:42:27.000Z (over 2 years ago)
- Last Synced: 2025-01-12T00:28:02.630Z (5 months ago)
- Topics: altwalker, demo, django, python
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django AUTH
Django web application with authentication flow.
The application is built as a demo to showcase how to write tests in python and execute them with [AltWalker](https://altwalker.github.io/altwalker/).
Features:
* Login
* Create Account
* Reset Password
* Change Password
* Logout## Run Django AUTH from code
Windows bash:
```sh
git clone https://github.com/altwalker/django-auth.git
cd django-authpython -m pip install pipenv
python -m venv env
. env/Scripts/activate
pipenv installpython manage.py migrate
python manage.py runserver
```Windows cmd:
```bat
git clone https://github.com/altwalker/django-auth.git
cd django-authpython -m pip install pipenv
python -m venv env
.\env\Scripts\activate.bat
pipenv installpython manage.py migrate
python manage.py runserver
```Unix/MacOS:
```sh
git clone https://github.com/altwalker/django-auth.git
cd django-authpython -m pip install pipenv
python -m venv env
source env/bin/activate
pipenv installpython manage.py migrate
python manage.py runserver
```## Build and run as a docker image
```
$ docker build -t django-auth .
$ docker run --rm -it -p 8000:8000 django-auth
```## Load reset password emails
When resetting a password an email must be sent to the user with a reset password link. For testability we save the email contents in a file that can be accessed by automated software at `/testability/last-reset-pwd-email`
## Useful links
To run the tests against this app, clone the tests repo from https://github.com/altwalker/altwalker-examples and follow the installation steps for `python-auth` example.
We've published an image on docker hub with this codebase: https://hub.docker.com/r/altwalker/demos
## License
This project is licensed under the [MIT License](LICENSE).