Code Monkey home page Code Monkey logo

appt-cert-gen-api's Introduction

Description

This is a simple online appointment management and certificate generation API, this project is created to support a frontend that will be developed separately.

Structure

  • controllers contains all the handlers for each endpoints
  • middlewares contains all the middlewares the are primarily used to easily attach authentication and authorization to each endpoint
  • models contains all the interfaces that defines the structure of each data the are stored in database
  • routes contains all the routes
  • services contains all the functions that involves retrieval and modification of data in the database
  • utils contains functions the are frequently used throughout the system

Why are we making this?

Because if we don't, we won't pass xD

appt-cert-gen-api's People

Contributors

itsmenewbie03 avatar dependabot[bot] avatar

Stargazers

SnoopyCodeX avatar Andrew Kevin M. Abler avatar

Watchers

 avatar

Forkers

toshiven

appt-cert-gen-api's Issues

implement document add feature

what to do

  • add an endpoint that would take a template file and the props it needs including if is it paid or not, this endpoint will store the template file and add a document in the documents collection
  • this will require update in the document model as this will add a new prop to the documents.

properly handle the paid and free document

what to do

  • in connection to #1 the endpoint must be updated to properly handle paid and free document
  • the endpoint should enforce that the user should explicitly add or_number in required_data

implement user appointment list

what to do?

  • this endpoint must return all the appointment that belongs to the user
  • this will allow the FE to display all the users appointment in a list

implement email validation

what to do?

  • implement external api to validate email address along with their domain
  • this is not a fool proof method but this should be better than nothing

implement access token refresh on dropbox integration

what to do

  • the DROPBOX_ACCESS_TOKEN stored in .env is short-lived and dropbox don't support generating long-lived token, so we need to implement it as they intend us to do.
  • this ensures #1 will not cause issues as we go

implement notification feature

what to do?

  • send a notification to user when an update to their appointment is made
  • the user should be able to mark notification as read

feat(resident,employee): implement validation

The following validation should be implemented

  • prevent duplicate resident entry by checking resident database before creating a new resident

Important

The criteria for determining the uniqueness of the entry must be logical and not too restrictive

  • ensure birthday input are sensible

Note

This includes but not limited to the birthday input is greater the current date, the age based on the birthday is less than the period of residency which does not make sense.

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.