Coder Social home page Coder Social logo

empmgmt's Introduction

EmpMgmtBE

ReST Services

  1. GET api/employees/all -Gets all employess status=active + inactive
  2. GET api/employees -Gets all the active employees
  3. GET api/employees/{id} -Gets a single active employee
  4. POST api/employee -Create a new employee
  5. PUT api/employees/{id} -Update an employee
  6. DELETE api/employees/{id} -Delete an employee (by status=inactive)
  7. DELETE api/actual/employees/{id} -Delete an employee from DB
  8. DELETE api/actual/Employees -Delete all the employees from DB
  9. POST api/employees/Injest -Bulk create list of employees from a file

Functionality supported

Employee Injest:

To import list of employees from the pre-filled csv formatted file. Steps:

  1. Click on button "Employee Injest"
  2. Browse the pre-filled comma (,) separated file as per below format
  3. The CSV format is described below. Click Here to get Template a link
EmpID, First Name, Middle Initial, Last Name, Date of Birth(YYYY-DD), Date of Employment(YYYY-MM-DD)
  1. Click on "Submit"
  2. On success a message will be displayed and user can navigate to view all the list of employees.
  3. By default the employees created will be with status="ACTIVE"
  4. It uses POST method to send file as multipart.

Build from source

Mongo DB

  1. Start the mongo db
  2. Get the monogo db related setting to update in the application

ReST Application

  1. Copy source
mkdir be
cd be
git clone https://github.com/kameshGithub/empmgmt.git
  1. Till the external configuration or proxy/gateway/service discovery feature is implemented, below manual configuration is required.
1. Go to .\src\main\java\com\kamesh\empmgmt\employee\controller\EmployeeController.java
2. Go to Line 46, and replace the URL of your Front-end application. 
3. Go to .\src\main\resources\application.properties  and change the required settings e.g. mongo db related.
  1. If you already have one, change the configuration accordingly.
mvn compile
mvn spring:boot run
  1. The server will be launched at http://localhost:5000/

empmgmt's People

Contributors

kameshchauhan avatar

Watchers

James Cloos avatar  avatar

Forkers

spellarbot

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.