GithubHelp home page GithubHelp logo

fericsepi / phishtray Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cybsafe/phishtray

0.0 2.0 1.0 1.42 MB

License: MIT License

Dockerfile 0.72% Python 56.33% HTML 0.74% JavaScript 40.93% CSS 0.02% Makefile 0.92% Shell 0.33%

phishtray's Introduction

Build Status Coverage 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
    
  3. Create two env files in the frontend. One called .env.development.local and the other called .env.local. You should then ask one of the devs for the content of the files.

Install

  1. Go into the local docker directory cd docker/local
  2. Build and bring up the images running docker-compose up -d --build
  3. Bash in to the django container using docker-compose exec django bash
    then create a superuser py3 manage.py createsuperuser --email [email protected]
  4. Run the static files command py3 manage.py collectstatic

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.

phishtray's People

Contributors

asgharsir avatar bendiggle avatar celopacob avatar danielgeoffreyhodgkins avatar dependabot[bot] avatar dhenu79 avatar dsantoro avatar fericsepi avatar iozzyi avatar jkimbo avatar juanblazquez avatar oluomoniyi avatar ruilealsilva avatar silvian avatar webbo89 avatar

Watchers

 avatar  avatar

Forkers

bendiggle

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.