Skip to content

sayak119/VMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Visitor Management System (VMS)

The doc can be found here. I added an extra feature regarding the checkout option by making use of unique tokens. When a guest checks in, they are given a unique token too. So that while checking out, they can enter it into the system. An admin page has also been added for monitoring. In this project, Sendgrid and Textlocal for the task of sending email and sending SMS to the parties involved. Also added the count of guests at any moment in the building.

  • For Textlocal go through the docs present here.
  • For Sendgrid go through the docs present here.

Machine Configuration

  • Operating System - Ubuntu 18.04 (LTS)
  • Python version - 3.6.8

Tech Stack

The System uses a number of open source projects to work properly:

  • Django - BackEnd
  • React - FrontEnd
  • Database - MongoDB

Installation

Install MongoDB

$ wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
$ sudo apt-get install gnupg
$ wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
$ echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
$ sudo apt-get update
$ sudo apt-get install -y mongodb-org
$ sudo apt-get update

Running

  • Run MongoDB
$ sudo service mongod start
  • Create the Virtual Environment
$ python3 -m venv env
$ source env/bin/activate
  • And in the virtual environment Run Backend
$ pip3 install -r requirments.txt
$ python3 manage.py makemigrations
$ python3 manage.py migrate
$ python3 manage.py runserver
  • Run test
$ python3 manage.py test
  • Run Frontend
$ npm install
$ npm start
  • URLs
Host - localhost:3000/host
Checkin/Checkout - localhost:3000
Admin - 127.0.0.1:8000/admin

Screenshots

  • Host Host

  • Check-in Check-in

  • Check-out Check-out

  • Admin (Guest not checked out) Admin not checked out

  • Admin (Guest checked out) Admin checked out

  • Updating host about guest Sending host update

  • Sending guest token on email Sending guest token on email

  • Sending final email when guest exits Sending final email when guest exits

  • Guest checkout token via SMS Guest checkout token via SMS

  • Informing Host about Guest checkin via SMS Informing Host about Guest checkin via SMS