Skip to content

Instantly share code, notes, and snippets.

@ridoansaleh
Last active January 10, 2021 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ridoansaleh/54aee4f5acc1f2142027a586e87e2f3e to your computer and use it in GitHub Desktop.
Save ridoansaleh/54aee4f5acc1f2142027a586e87e2f3e to your computer and use it in GitHub Desktop.

STAFF LIST RESTAPI PLAN

Tutorial to follow: Creating a Secure REST API in Node.js

Project Name: Staff List RestAPI
Database: MongoDB Atlas (Cloud Database)
Framework: Express

Features

  1. Create a company as a user (Registration / Sign Up) ==> (POST)
  2. Login as a company's admin ==> (POST)
  3. Get all staff ==> (GET)
  4. Add a new staff's data ==> (POST)
  5. Edit a staff's data ==> (PUT)
  6. Delete a staff's data ==> (DELETE)

Deployment

Hosting: AWS (Lets try this) Heroku

Database Structure

  1. Company
Field Type Explanation
_id string auto generated
company_name string
address string
city string
country string
number_of_employee number
industry string
admin_username string
admin_password string
  1. Staff
Field Type Explanation
_id string auto generated
name string
gender string (male or female)
religion string
marital_status string (married or single)
address string
city string
country string
start_date string
salary number
position string
employee_status string (intern or fulltime)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment