Giter Site home page Giter Site logo

appointment-management-system's Introduction

Appointment Management System

Appointment Management System is a project build upon the Node and Typescript.

The main purpose of this project is to create the playground for the unit testing learning.

Tech Stack

  1. Typescript
  2. Node
  3. Express
  4. PostgreSQL
  5. Prisma (ORM)

Features

  1. User Registration and Login
  2. Appointment Add, Read, Update, Delete
  3. Unit testing

Installation and Running

  1. Clone the repo.
  2. Install the dependencies by running npm install.
  3. Run npm run prisma:migrate to migrate schema.
  4. Run npm run prisma:generate to install prisma client.

npm run start:dev start the server in development mode. npm run test:dev to start Jest testing

Database Migration and Setting

  1. Run npm run prisma:migrate to migrate the prisma.schema.
  2. Run npm run prisma:generate to update the prisma client with latest changes so that you get typechecking for latest changes to your schema.

Every time you make changes to prisma/schema.prisma make sure to run above commands.

For seeding run npm run prisma:seed

Scripts

  1. Run app in watch mode npm run start:dev

  2. Run test npm run test

  3. Run test with coverage npm run test:badges

  4. Run production build npm run build

Postman

You can find the postman collection of the available APIs here

Challenges

The application architecture follows the following structure:

  • Route
  • Controller
  • Service
  • Repository

For the unit testing, one can begin mocking and spying the PrismaClient to test the repository layer.

  1. For repository layer testing, it is recommended to use the jest-mock to mock the PrismaClient.

  2. For Service layer testing, it is recommended to use the Jest/SinonJS for mocking and spying.

  3. For API testing, it is recommended to use supertest.

Contributors

  1. Eklak Dangaura
  2. Nirajan Bist
  3. Ishwar Gautam
  4. Bipin Poudel

appointment-management-system's People

Contributors

azens1995 avatar nirajan-bist avatar bipin-01 avatar ishwar-gautam avatar

Stargazers

Rikesh Lal Shrestha 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.