Giter VIP home page Giter VIP logo

django-visitor-management-system's Introduction

HealthPlus-Visitor-Management-System

A Visitor Management Web App made using Django.

This is a simple web application which can be used for managing meetings and visitor details. It can keep track of all the meetings and can send emails and sms to host and visitor about their meeting details.

Being a web application It also serves as an organisation's official website where other people can visit and get more information about the organisation.

This project is made by keeping a healthcare organisation in mind. Though it can be modified for any organisation.

Why i made it organisation specific?

Well !, as it also acts as an organisation's official website, so i took an example organisation. Also, its always better to explain with examples : )

Visit deployed website

Watch Demo video (Recommended)

Check-Out Provision

Now, According to me, the best person who can be given the responsibility to checkout a visitor is the 'Host' itself.

Why Host ??

  • If we give the checkout option openly on the dashboard, someone else may misuse the option and checkout for others.
  • Assume we use a verification system for checkout on dashboard, it may happen that the visitor forget to checkout after leaving and as it requires verification, the Host will be shown as BUSY on dashboard for an unknown time.
  • If we make the Checkout option manual, means the visitor is required to go to reception and ask for checkout, then also it may happen that visitor forget to visit reception after leaving. Also our system is made to be automatic and this will make it manual.
  • As Host is the only person involved in the meeting after visitor, and he also knows that exactly when the visitor left, he can be given the option to checkout visitor.

How Host can Checkout Visitor ??

  • As we know that when a visitor makes a Check-In, Host is informed about it via Email and SMS. I have given the Check-out button for that visitor in the same Email sent to Host, and asked him to click that button when the meeting is over. As soon as the meeting is over, Host clicks the Checkout button given in the mail, and checkout of visitor is completed. Checkout Time is recorded and an Email is sent to visitor. Also the Host status is set as FREE, that means Host is ready for next meeting.
  • Dashboard is capable to refresh itself after every 20 seconds(thanks to Meta refresh method!), so that any change in Host status is seen on the dashboard automatically.

Watch the demo video given above to Know, how it exactly works. Screeshots of Emails and SMS are given below.

Screenshots of Emails and SMS

Emails and SMS

Technology Stack

  • Django - Backend
  • HTML, CSS, Bootstrap - Frontend
  • Sqlite3 - Database
  • Jinja - Templating engine
  • way2sms Message API (You can use any API of your choice!)

Approach for developing backend

As there are two major things to store, which are host details and meeting/visitor details. I have created two models for it, named as :

  • Host, with following fields:

    • id = AutoField
    • host_name = CharField
    • host_email = EmailField
    • host_phone = IntegerField
    • host_image = ImageField
    • host_desc = CharField
    • address = CharField
    • status = BooleanField
    • available = CharField
    • current_meeting_id = IntegerField
  • Meeting, with following fields:

    • id = AutoField
    • visitor_name = CharField
    • visitor_email = EmailField
    • visitor_phone = IntegerField
    • host = CharField
    • date = DateField
    • time_in = TimeField
    • time_out = TimeField

These two models are connected using the meeting ID which is stored in both of them, during meeting the status of Host is set as BUSY and after the meeting is over, Host clicks the Checkout button given inside the Email. As the Checkout button is clicked, the meeting Id filled inside 'current_meeting_id' is deleted and Host's status is set to FREE. Also the checkout time is autofilled inside meeting details.

Features

  • Works as both, Official website and Visitor management system.
  • Simple and easy to use GUI.
  • Faster load speeds (thanks to Django!).
  • Password secured Visitor management dashboard.
  • Descriptive dashboard that shows all hosts with their images, details and status.
  • Keeps track of all meetings and respective visitor details.
  • Emails and SMS notification to both visitor and Host.
  • Secure and Easy to ADD, DELETE or EDIT a Host profile.

Solution Workflow

  • Let a visitor wants to meet a host, he goes to office and checks for that Host on the Dashboard Screen installed for visitors. Dashboard shows information of all Hosts with their current status.
  • If the Host is BUSY it shows the current visitor details. And if the host is FREE, an 'Arrange Meeting' button is shown.
  • Visitor clicks on that arrange meeting button and a 'Meeting Form' is opened, visitor fills his/her details in that form and clicks on Check-In button.
  • As the Check-In button is clicked, an Email with all deatils of visitor and a Check-out button for that visitor is sent to Host. A SMS is also sent to Host about Visitor's details. Status of the Host is changed to BUSY on the dashboard.
  • After the meeting is over, the visitor leaves the office and Host clicks on that 'Check-out' button given inside the mail. As soon as it is clicked, the Host's status is set as FREE again and Checkout time is recorded for that meeting. An Email with all the meeting details is sent to the visitor's Email Id.
  • Dashboard refreshes itself automatically after 20 seconds and Host is again seen as FREE on the dasboard.

Local Machine development setup

  • Clone the repository on your machine

    git clone https://github.com/shubhamkumar27/Summergeeks-Visitor-Management-System.git
    
  • Install all dependencies by executing the following command:

    pip install -r requirements.txt
    
  • You need to make some changes to the settings.py file inside visitor_management folder, go to bottom of the file

    UPDATE : EMAIL_HOST_USER = "your email id" 
    UPDATE : EMAIL_HOST_PASSWORD = "your email id password"
    

    ( Make sure you enable less secure apps in your google account, so that it sends email ! )

  • Now you need to edit some lines in views.py file inside accounts folder

    • INSIDE email function:
      UPDATE : sender = 'your email id'
      
    • GO to way2sms, create your account and genetrate your test apikey and secret key. Now go INSIDE sendsms function:
      UPDATE : 'apikey':'your api key',
      UPDATE : 'secret':'your secret key',
      UPDATE : 'senderid' : 'your way2sms account email id'
      
  • Now go inside the main folder which was cloned (manage.py file will be present there), now open a terminal in that directory and run follwing commands:

    python manage.py createsuperuser
    # follow further instruction there
    
    - After super user is created 
    python manage.py makemigrations
    python manage.py migrate
    
    python manage.py runserver
    
  • Now server will start at - http://127.0.0.1:8000/

Credits :

Want to contribute or found any bug ?

  • Make sure you raise an issue if you find any error or bug.
  • If you want to add any feature or want to fix any issue, please make a pull request.
  • Contact me at my mail id - [email protected] - for any kind of help.

Made with โ™ฅ by Shubham Kumar

django-visitor-management-system's People

Contributors

dependabot[bot] avatar shubhamkumar27 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-visitor-management-system's Issues

Need help (Not about this project)

Hi @shubhamkumar27 i need your help regarding custom domain
I have purchased/redeemed this shubhamkumar.tech domain

But i am not able to connect it with my GitHub deployed project & shubhamkumar.tech is redirecting to your portfolio ๐Ÿ˜ถ
image
image

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.