Skip to content

Test Project to create a mock employee registry CRUD

Notifications You must be signed in to change notification settings

posical/nodejs-emp-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-emp-registry

Test Project to create a mock employee registry CRUD

Project Description

A simple node server using ExpressJS to serve API calls. The database used is Mongo DB for simplicity.

The API methods are as such:

POST, GET, PUT, DELETE

In relation to the CRUD functions:

Create : POST
Read   : GET
Update : PUT
Delete : DELETE

The default fields expected from the API endpoint is as such (6 string fields in total):

name, address, email, phone, job, salary

"name":""
"address":""
"email":""
"phone":""
"job":""
"salary":""

File structure

  • api/
    • controllers/
      • employeeRegisterController.js
    • models/
      • employeeRegisterModel.js
    • routes/
      • employeeRegisterRoutes.js
  • .gitignore
  • package.json
  • README.MD
  • server.js

Technology Stack

  • NodeJS
  • ExpressJS
  • NPM (Node Package Manager)
  • Git
  • Mongo DB

Installation

npm install

Starting the server

node server.js

Serving the API endpoint

http://localhost:3000/employee

About

Test Project to create a mock employee registry CRUD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published