Skip to content
No description, website, or topics provided.
JavaScript Python Dockerfile Makefile HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
exercise
frontend
participant
phishtray
staticfiles
utils
.gitignore
.travis.yml
LICENSE
Procfile
README.md
buildspec.yml
docker-compose.yml
ecs-paramsEC2.yml
local.Dockerfile
manage.py
package.json
prod.Dockerfile
release-tasks.sh
requirements.txt
robots.txt

README.md

Build Status

Running The Demo

  1. make sure you've completed the prereqs
  2. Navigate to http://phishtray.local:9000/admin and create an Exercise with emails
  3. Copy the exercise UUID
  4. In your local terminal, from the phishtray folder, cd frontend and yarn start
  5. Navigate to http://phishtray.local:3000/welcome/exercise:uuid/ to start the exercise

Phishtray Installation

Prerequisites

  1. Install docker & docker compose - https://docs.docker.com/install/

  2. Add the following to your hosts file:

     # Phishtray
     127.0.0.1               phishtray.local
    

Install

  1. Build and bring up the images running docker-compose up -d --build
  2. Bash in to the django container using docker-compose exec django bash
    then create a superuser py3 manage.py createsuperuser --email your@email.here

Running tests

Run bash inside the django container using docker-compose exec django bash then run the following test command py3 manage.py test

Running Django Server

  1. Normal - To run the server normally make django-run
  2. 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)

Working 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.

You can’t perform that action at this time.