Giter Site home page Giter Site logo

kyberfailapp's Introduction

kyberfailapp

This is the repository of a Django web app for the Cybersecurity base project I. The app is internally named "Doctor's notes" and has patient and doctor roles for users as well as adding, removing and viewing of doctor's notes. Doctors can write, view and remove notes in addition to viewing patients.

The repository is in two branches: the main branch has five security flaws that are implemented on purpose as per the project assignment and the working branch that has fixes to those security flaws. Working branch can be found here. The report can be read from the report.md file.

Setup guide

The app has been configured to be used with Docker as an extra exercise, but can be ran regularly with Django commands.

Django setup

  1. Install Python 3.10.12 or later. You can check your Python version by writing python -V into the Terminal on Linux or PowerShell on Windows. Note: Sometimes the Python command might be defined as python3.
  2. Make sure pip is installed with python -m pip -V
  3. Install Django with python -m pip install Django
  4. Migrate databases by:
  • First run python manage.py makemigrations
  • Then run python manage.py migrate
  1. Then start the app with python manage.py runserver

The app runs in the local address of 127.0.0.1:8000.

Docker setup

  1. Download Docker.
  2. Build and run the app with docker-compose up

The app runs in the local address of 0.0.0.0:8000.

Note: Building and running the app with Docker might lock the SQLite database to a read-only status, so that running the app straight from the Terminal or PowerShell afterwards doesn't work. Remember to remove the db.sqlite3. Then run python manage.py makemigrations and python manage.py migrate to remigrate the database before running python manage.py runserver.

kyberfailapp's People

Contributors

nuis4nce avatar

Watchers

 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.