- make sure you've completed the prereqs
- Navigate to http://phishtray.local:9000/admin and create an Exercise with emails
- Copy the exercise UUID
- In your local terminal, from the phishtray folder,
cd frontend
andyarn start
- Navigate to http://phishtray.local:3000/welcome/exercise:uuid/ to start the exercise
-
Install
docker
&docker compose
- https://docs.docker.com/install/ -
Add the following to your
hosts
file:# Phishtray 127.0.0.1 phishtray.local
- Build and bring up the images running
docker-compose up -d --build
- Bash in to the django container using
docker-compose exec django bash
then create a superuserpy3 manage.py createsuperuser --email your@email.here
Run bash inside the django container using docker-compose exec django bash
then run the following test command py3 manage.py test
- Normal - To run the server normally
make django-run
- Debug - To run the server in debug mode
make django-debug
(This will allow a tool like PyCharm to actually start the web server within the container)
Within the container you should use Python 3 which can be called via py3
or python3.6
commands, python
refers to Python 2.7 which is the system default.