Coder Social home page Coder Social logo

sailyra / entry-management-software Goto Github PK

View Code? Open in Web Editor NEW

This project forked from manvityagi/entry-management-software

0.0 0.0 0.0 1.7 MB

Live Demo

Home Page: https://hidden-savannah-59110.herokuapp.com/

JavaScript 42.16% CSS 13.20% HTML 44.64%

entry-management-software's Introduction

Introduction

Entry Management Software is an implementation of a multi-host, multi-visitor entry management system.

๐Ÿ”จ Working

  • The system is flexible to accomodate multiple hosts for multiple visitors.
  • The software admin can register new hosts by using the Register as host option from Home Page. It is assumed that an admin will be handling the software, so no passwords are needed by hosts to register themselves. The whole system is only accessible by Only Admin.
  • Check-in as guest checks in the visitor & allots a host to the visitor from the the host attending the least visitors at that time. At the same time , an email and sms is sent to the host alloted for the visitor about the details of the visitor
  • Check-out Guest checks out the visitor & sends an email & sms to the visitor including relevant details

๐Ÿšง Technology Stack

  • Server Enviornment - NodeJS
  • Framework - ExpressJS
  • Database - MongoDB
  • Cloud database service - MongoDB Atlas
  • Module to send emails - NodeMailer
  • SMS sending - Twilio
  • Deployment - Heroku

Note : SMS can be sent to only Twilio verified numbers as I am not using the paid service.

๐Ÿ’ก Approach

Alloting Hosts to Visitors

  • The available hosts are shown as a dropdown list to the visitors, visitor can select their host from the list

Mailing

  • Mails are sent by an admin email-id to the host when a visitor checks in & to the visitor when she/he checks-out using the nodemailer module

SMS

  • SMS are sent to to the host when a visitor checks in & to the visitor when she/he checks-out using Twilio's free account

Validations and Error Handling

  • Email and Phone numbers are validate for correct format, and errors due to duplicacy of index data are reported using connect-flash

Edge Cases Handled ๐Ÿ’ก

  • If there are no hosts registered & a visitor checks-in, then an error for the same is reported.
  • Duplicate hosts are restricted
  • A checked-in user cannot check-in again before checking out : I used a boolean variable checked-in to keep track of the same & check this variable before checking in the user.
  • A visitor is created only once , that is , if the visitor is visiting for the second time , it will not be created again, but all other process will go as expected.

โฌ‡๏ธ Installation

  • First, fork this repository ๐Ÿด and follow the given instructions:
# clone the repository to your local machine
$ git clone https://github.com/<YOUR-GITHUB-USERNAME>/Entry-Management-Software.git

# navigate to the project's directory and install all the relevant dev-dependencies
$ cd Entry-Management-Software && npm intsall

# Make a .env file and include the details as per config.js 

# Start application
$ node app.js

# Visit http://localhost:5000/ in your browser

Demo Images

Check-in Page

Check-in Page

After Check-in

After Check-in

SMS to Host after visitor checks-in

SMS Host

Mail to host after visitor checks-in

Mail Host

Check-out Page

Check-out Page

After Check-out

After Check-out

SMS to visitor after visitor checks-out

SMS Visitor

Mail to visitor after visitor checks-out

Mail visitor

Dashboard

Dashboard

Future Extensions

This project has a lot to be extended:

  1. Whenever a visitor checks-in , his/her picture can be captured for security purposes
  2. OTP verification of phone number can be set-up before allowing the visitor to enter
  3. Authentication can be made using JWT tokens or PassportJS for each host, like a signup and login system for hosts.
  4. Dashboard can be managed according to dates
  5. Authentications for registering new users can be setup
  6. Each host can be given a profile and dashboard to manage their visitors And many more things can be added to this project.

entry-management-software's People

Contributors

manvityagi avatar dependabot[bot] 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.