Tutorial to follow: Creating a Secure REST API in Node.js
Project Name: Staff List RestAPI
Database: MongoDB Atlas (Cloud Database)
Framework: Express
- Create a company as a user (Registration / Sign Up) ==> (POST)
- Login as a company's admin ==> (POST)
- Get all staff ==> (GET)
- Add a new staff's data ==> (POST)
- Edit a staff's data ==> (PUT)
- Delete a staff's data ==> (DELETE)
Hosting: AWS (Lets try this) Heroku
- 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 |
- 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) |