Giter Site home page Giter Site logo

test's Introduction

HRMS-Gratia

This code repository is for the Human Resource Management Project for Gratia Technology.

Project setup

  • Clone the repository.
  • Install node_modules by using npm install command in the project directory where index.js is present.
  • run the project using npm start command.
  • visit url localhost:3000 to access the project via browser.

Directories

  • Backend : this contains all the files related to the backend.

    • controller : contains files which are responosible for performing logical or database operations. Routers uses controllers to handale all the logical operations.
    • router : contains files which are responosible for performing routing, routes imports controllers.
    • model : contains database models, controller imports model to perform CRUD operation.
  • Frontend: this contains all the files related to the frontend.

API endpoints

  • Register or Login (ROL)

    • login - api/rol/login/ : method: post and required params are email and password and response will be employee info object.
    • register - api/rol/register/ : method: post and required params are email, password, name, dob, phone, desgination and department and response will be employee info object.

Demo response

    {
      "message": "success",
      "error": false,
      "data": {
            "emp_id": "GT/0007/22",
            "email": "[email protected]",
            "password": "d705377cdcd1c92de9e32ab79514b5805879e6dd2a2fb3ba63687ca329e76750",
            "name": "Tutul Deb Roy",
            "phone": "9854851059",
            "dob": "29-09-1998",
            "designation": "Project Assistant",
            "department": "IT",
            "_id": "622ef8abe6afc5aab6e3a832",
            "__v": 0
      }
    }

Testing

  • localhost:3000/demo/ : Homepage.
  • localhost:3000/demo/add : employee can be added here and response will be shown in raw json format.
  • localhost:3000/demo/login : login can be performed and response will be shown in raw json format.
  • localhost:3000/demo/list : list of every resigisted employee will be shown in raw json format.

test's People

Contributors

pushpa32 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.