Skip to content

johanjoseph02/Employee-Management-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Management API

API to perform CRUD operations on a company's employee database


srmkzilla

         supabase          nodejs          typescript          express

Built with:

  • Node.js
  • Typescript
    • Statically typed language, preferred over traditional Java for its strict typing
  • Express.js
    • Backend framework used to create RESTful APIs
  • Supabase
    • An open-source PostgreSQL database, a Firebase alternative and self-hosted

Deployed using Heroku:

https://employee-mgmt-kzilla.herokuapp.com/

API Routes:

  • GET: Search for an existing employee via email or unique ID

https://employee-mgmt-kzilla.herokuapp.com/api/search-employee?email=johanisrecruited@srmkzilla.xyzsearch-employee

  • GET: Show all existing employees in database

https://employee-mgmt-kzilla.herokuapp.com/api/show-employeesshow-employees

  • POST: Add new employee

https://employee-mgmt-kzilla.herokuapp.com/api/add-employeeadd-employee

  • PUT: Update existing emplyee via unique ID

https://employee-mgmt-kzilla.herokuapp.com/api/update-employee/id/t_KA6nvjenuQAb5qblMrCQbkupdate-employee

  • DELETE: Delete existing employee via email and unique ID

https://employee-mgmt-kzilla.herokuapp.com/api/delete-employee/emaildelete-employee-email

https://employee-mgmt-kzilla.herokuapp.com/api/delete-employee/iddelete-employee-id

Additional Features:

  • Schema validation using Yup
  • Google Recaptcha v3 integration