Code Monkey home page Code Monkey logo

hawkphish_backend's Introduction

Backend for HawkPhish Extension

Frontend Resources

Reference 2024 Frontend Extension: SecurityWebScanner

Reference 2023 Frontend Extension: SecurityWebScanner (Legacy)

MR and workflow

Do not work on main... That is bad practice and if you push changes that break something it can be hard to figure out. Make your own branch with:

git pull
git checkout -b <test_branch>

When ready with your changes and they work locally, commit and push changes:

git commit -am "message"
git push -u origin <test_branch>

Merge request (MR) to main:

git checkout main
git pull origin main
git merge <test_branch>`

There should be an approval request so wait, if not after resovling conflicts:

git push origin main

Local Testing

You need to generate your own secret key for which you need to install django (search up how to do that for your OS) and generate your secret key:

python3 -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'`

Now you need to create a file inside the root project dir:

touch .env

Install an environment library:

pip install python-dotenv

Add these two things inside the file .env:

DJANGO_SECRET_KEY='<your_secret_key'
DEBUG='True'

Lastly, to start the django server:

cd <project_dir>
python3 manage.py migrate
python3 manage.py runserver

This will open a local connection on port 8000, you might need to add firewall rules to allow this and you can work real-time (changes made live) on this as long as you dont close that connection.

hawkphish_backend's People

Contributors

deigil avatar

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.