Code Monkey home page Code Monkey logo

ranjanji / covid19-vaccination Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 1.49 MB

SpringBoot project has REST API for a Covid-19 Vaccination.. JavaScript UI based website which has the functionality of performing CRUD operations. The objective is to handhold the citizens to register and schedule an appointment for vaccination in the Centers of their choice.

Home Page: https://drive.google.com/drive/u/1/folders/1ePwnb_U4BDKqoLKsC_Rm9nDh6VLIwmMh

Java 58.78% CSS 11.62% HTML 15.70% JavaScript 13.90%
covid-19 covid19-india covid19-vaccination css3 hibernate-jpa html5 java javascript mysql rest-api spring-boot swagger-ui covidproof-app

covid19-vaccination's Introduction

Covid-19 Vaccination (CovidProof App)

Table of Contents
  1. About The Project
  2. Features
  3. Tech Stack
  4. ER Diagram
  5. Modules
  6. Installation
  7. API Root Usage
  8. Contributors

REST API for an Covid-19 Vaccination app having UI based functionality.

  • We have developed this REST API for an Covid-19 Vaccination. This API performs all the fundamental CRUD operations to facilitate the citizen with an option to register and schedule the vaccination session online in the Centers of their choice.
  • To develop and build a database application for a real-world domain.
  • To The Citizen self-registration module will ensure fool-proof identification of deserving candidates for receiving the vaccines.
  • Developed by team of 4 Back-end Developers during project week in Masai School.

Features

  • User and Admin authentication & validation with session uuid having.
  • Login and LogOut functionality for both admin and user.
  • Front-End UI platform to showcase the functionality of application.
  • Admin Features:
    • Administrator Role of the entire application
    • Only registered admins with valid session token can add/update/delete vaccination module and vaccineCenter module or user from main database
    • Admin can access the details of different Users, Vaccine, Centers and Dose.
  • User Features:
    • Registering themselves with application, and logging in to it.
    • Search the available Center based on name, city, pin code and booking a Appointment.

(back to top)

Tech Stack

  • Java
  • Spring Framework
  • Spring Boot
  • Spring Data JPA
  • MySQL
  • Postman
  • Swagger
  • JavaScript
  • HTML5
  • CSS3

My Skills

(back to top)

ER Diagram


Modules

  • Admin Module
  • User Module
  • Appointment Module

Installation & Run

  • Before running the API server, you should update the database config inside the application.properties file.
  • Update the port number, username and password as per your local database config.
    server.port=8880
    spring.datasource.url=jdbc:mysql://localhost:3306/CovidProof
    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
    spring.datasource.username=root
    spring.datasource.password=root

(back to top)

API Root Endpoint

https://localhost:8880/
http://localhost:8880/swagger-ui/index.html

Sample API Response for applicant/user Register

POST: http://localhost:8880/swagger-ui/index.html#/applicant-controller/registerApplicant

  • Request Body
{
  
  "name": "Subham Ranjan",
  "gender": "M",
  "dob": "1997-08-27",
  "age": 25,
  "address": "Badarpur, New Delhi",
  "city": "New Delhi",
  "state": "Delhi",
  "pincode": "110044",
  "mobile": "9311971746",
  "pancard": "65NL0CVX"
  
}

Response Body

{
  "id": 1,
  "name": "Subham Ranjan",
  "gender": "M",
  "dob": [1997,8,27],
  "age": 25,
  "address": "Badarpur, New Delhi",
  "city": "New Delhi",
  "state": "Delhi",
  "pincode": "110044",
  "mobile": "9311971746",
  "pancard": {
    "panNumber": "65NL0CVX"
  },
  "aadharcard": {
    "adNo": 224246106463,
    "mobile": "9311971746"
  },
  "doses": null
}


(back to top)

Sample API Response for applicant/user Login

POST: http://localhost:8880/swagger-ui/index.html#/applicant-controller/loginApplicant

  • Request Body
    {
        "Mobile": "9311971746",
        "dob": "1997-08-27"
    }
  • Response Body
  {
  "id": 1,
  "name": "Subham Ranjan",
  "gender": "M",
  "dob": [
    1997,
    8,
    27
  ],
  "age": 25,
  "address": "Badarpur, New Delhi",
  "city": "New Delhi",
  "state": "Delhi",
  "pincode": "110044",
  "mobile": "9311971746",
  "pancard": {
    "panNumber": "65NL0CVX"
  },
  "aadharcard": {
    "adNo": 224246106463,
    "mobile": "9311971746"
  },
  "doses": []
}

(back to top)

Contributors

(back to top)

covid19-vaccination's People

Contributors

kapil-khursade avatar ranjanji avatar roshan-patro avatar sadhakvishu avatar sumitpanchal08 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kapil-khursade

covid19-vaccination's Issues

Day2

  • Create Bean class of IdCard
  • Create Bean class of PanCard
  • Create Bean class of AadharCard

Day2

  • Create Exception handler for Id,Pan and Aadhar card entites class

Day4

  • Vaccine module

Day1(project code rechecking for comments)

  • Checking for comments in all entity classes
  • Checking for comments in all exception classes
  • Checking for comments in all service layers
  • Checking for comments in all controller layers

Day4

  • Create Search module

Day3

  • Create Vaccination inventory module

Day3

  • Create Booking appointment module

Day5

  • Frontend web setup and creating homepage

  • Creating navbar

  • create footer

day-5

  • module-dao
  • merging
  • checking

day-3

  • module2-dao
  • exception

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.