GithubHelp home page GithubHelp logo

lornawanjiru / djangostudyjams Goto Github PK

View Code? Open in Web Editor NEW

This project forked from collinskoech11/djangostudyjams

0.0 0.0 0.0 29 KB

Getting started with django tutorial session

Home Page: https://gdsc.community.dev/j/g6tyv6t6jven3/

Python 100.00%

djangostudyjams's Introduction

DjangoStudyJams

Getting started with django tutorial session

Requirements

  • Python3 installed

Proposed Workflow

  • Python 3 Installation
  • installing virtualenv
  • setting up virtual environment
  • installing Django

Setting up a basic project

  • Set up django project
  • Create first Django application
  • Set up application in the main project(settings.py)
  • set up template & static folders

Getting started with specifics

  • set up header and footer design in index view
  • set up views & urls for proposed views

Database (DBsqlite3 -> django default database)

  • set up models for the various tables (i.e including foreign keys)

  • import models to admin view

  • set up django workflow with github actions

    • automate database migrations

    Proposed tables

    Users(extension)

    fieldname datatype
    username FK=> Users(User)
    role VarChar(UserGroup)
    user_id IntegerField

    Inventory(meds)

    fieldname datatype
    med_name CharField
    med_id IntegerField(AutoIncrement)
    manufacturer IntegerField(AutoIncrement)
    medtype CharField
    dosage CharField

    Symptoms -> Medical service request (Patients)

    fieldname datatype
    patient_name CharField(FK Users(User)
    patient_id IntegerField(FK Users(User_id))
    patient_age IntegerField
    symptom CharField
    Duration of symptoms IntegerField

    Payments (Patients)

    fieldname datatype
    patient_name CharField(FK Users(User)
    patient_id IntegerField(FK Users(User_id))
    amount IntegerField
    payment_id IntegerField(AutoIncrement)

    Prescriptions (Medical Staff)

    fieldname datatype
    patient_name CharField(FK Users(User)
    patient_id IntegerField(FK Users(User_id))
    staff_name CharField(FK Users(User)
    staff_id IntegerField(FK Users(User_id))
    amount IntegerField
    payment_id IntegerField(AutoIncrement)

User authentication & user groups

  • set up name & password verification
  • set up the diferent user groups

Design Implementation Intention

  • Login/Register
  • Dashboard(Patient, Medical Staff)
  • Medical Service Request(Symptoms Form -> Patients)
  • Make Payments( -> Patients)
  • Check Medical service Requests( -> Medical staff)
    • Make Prescription based on selected service request(-> Medical staff)

    Dashboard design

    • Patient Dashboard
      • display patient name
      • display payment history
      • display Medical history
      • View all prescription with my name (Order by date)
    • Medical staff Dashboard
      • Display staff name
      • display presccription history
      • display unattended requests

Views

Patients

  • Request Medical attention
  • Make payment
  • Display Payment history
  • Display Medical History

Medical Staff

  • View Medical attention requests
  • Make prescription
  • Prescriptions history

Extra stuff (personal study)

  • spread operator
  • destracturing
  • hoc

  • js mastery
  • academind
  • james flexbox -> the ninja
  • kevin powel

djangostudyjams's People

Contributors

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