Giter VIP home page Giter VIP logo

company-assignment2's Introduction

company-assignment2

Backend Developer Assignment

Tech Stack: NodeJS, MongoDB

Task Description: Develop APIs to access/manage data on MongoDB (should be deployed on Mongodb Atlas) for the given use case. Use case : Imagine there is an app created for vaccine registration (similar to that of Arogyasetu Cowin part). App has the functionality to (for user)

● Register user (Mandatory fields: Name, PhoneNumber, Age, Pincode, Aadhar No) ● User can login through his PhoneNumber and password (set during registration) ● User should be able to see the available time slots on a given day for vaccine registration (first/second dose based on his vaccination status) ● Users can register a slot for the first/second dose of the vaccine (example: register for 1st dose on 1st June 11 AM). ● Users should be able to register for the second dose, only after completing their first dose of vaccine. Once the registered time slot is lapsed, the user should be considered as vaccinated for that registered dose (first/second). ● User can update/change his registered slot, till 24 hours prior to his registered slot time

(for admin)

● Login using admin credentials (There won’t be any api for registering the admin. His credentials should be manually created in the database) ● Check the total users registered and [filter them by Age/Pincode/Vaccination status (none/First dose completed/All completed)] - Optional

● Check the registered slots for the vaccine (first dose /second dose/total) on a given day Vaccine slot details

● Assume that vaccination drive is happening only from 1st June ‘21 to 30th June ‘21 ● Timings of the vaccine : 10 AM to 5 PM everyday ● Each vaccine slot will be of duration 30 minutes. (So slots will be like 10:00 AM to 10:30 AM, 10:30 AM to 11:00 AM etc) ● In each vaccine slot there will be 10 vaccine doses available (vaccine dose is same for first/second doses. So both users with first dose or second dose can register). ● So total available vaccine doses => 301410 => 4,200 ● Once 10 vaccine doses in a slot is registered, that time slot shouldn’t be available for further registrations (unless the registered user modifies his time slot to a different slot)

Deliverables:

● Create APIs for all the use cases mentioned above (both user and admin). ● Create an atlas mongodb free tier instance and use it as the database. ● Share the APIs private repository (add pvsvamsi as the collaborator), Readme file (with apis and their functionality listed, models) and the atlas mongodb credentials at the end of the assignment deadline

Evaluation Criteria:

● API schema and database models ● Performance optimizations of the APIs and data validations ● Use cases covered ● Explanation/comments for the designed schema and models

company-assignment2's People

Contributors

dipesh-j avatar

Watchers

 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.