Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User thamindu #31
base: main
Are you sure you want to change the base?
User thamindu #31
Changes from all commits
3b7387e
778f41d
31a2d26
1a3ca77
aa43b54
bac0f5c
b03d818
d3b5237
ffe8e26
5edccb7
00f4805
9bfa0f4
af28865
936018e
59854be
bee4f2d
8551e4f
b7baf47
e31d2ea
7e3b5cb
c601668
aa75a0d
34f0330
fcddffe
1c39533
505ffe1
22baf15
b203bf5
f44c228
e40b4e2
007c64c
9925c8f
af18b4d
9632c0a
ff847f5
e7968ec
2a94ae7
5481ff3
e32dd03
2943e9c
ea6ca9a
dfe0797
9e8dfd5
b558300
53fb340
67e5f2f
10bb6f2
9848daa
bb88ec1
c9f1a94
14d9f11
311bd66
9450dcb
1907294
78d7468
350b2bf
2d1b6eb
dbcd503
ff7b1d4
ef87849
8129876
19995c1
82c8fd0
751e7a4
89f433c
fd2e4ae
52c7f35
ed0069c
242f26c
a01332b
fc8ccde
b0741e6
a918728
f9f197d
4290b24
4179fa1
f934c30
ab4443f
07fd3bd
5a6a8c3
e7fa778
b1dcdc1
26c3b1c
497cb59
477876c
2de11b0
bf629b9
d6191ea
ee4fca5
47e9438
07878c2
2771737
e238a9d
d96c00e
5f6e864
710ce70
a33b682
bb8cf5c
3bdd660
ef56c1f
40cd5dd
f8bedb8
cd0d6dc
19883ab
d4c41d8
6512cac
cceefa9
2ee4258
8f5c38b
7b1fd81
be0d2ca
8c182b1
bfdf3a9
b83f441
25aadab
09345d2
025ecae
76f797e
9238b82
2305082
5581331
e7964e0
b6c03a8
523b317
b4daad1
640ee04
a7609d6
6561096
e505e15
0e8506b
68491a2
a5d072a
360485f
dd151f6
8c31aa4
8c72980
0784596
72f9fa0
b6596b0
b7c10bb
791b8a7
9198ef3
2a7f456
78ee1a1
d8e6edc
0e8ba74
46c527d
466175e
0531aba
6633e8f
8c6e0c7
546b9ed
66ff9a2
69bd83e
df89211
30e8f1d
bfc1912
32ec54a
5fbb21c
6c6184b
ea27b54
f947d6d
8f0da44
276cd0d
888362c
49756c8
5147614
dd22c00
f4aa3ff
2172ffb
a10b04a
69fba94
c7481c2
6e63b31
8def7f1
156eb4b
06dc272
3c75d42
9d71f1e
c58787b
4fdf395
62a1db9
aa1fb48
9e9519d
06b3c67
bcee726
e38f977
ed84b59
0be8fdd
b869fc9
9dfd6f7
6b1f4d9
97f0712
4cb413d
38e5506
859e91d
84f9eae
7e8e61f
05f4214
02b61ee
9c4385c
d4d189b
bbe12bb
1ba13d1
aaa2822
6fb185e
80f22f3
3350f2a
c3b180d
cd1be6d
f84ec38
a05466b
c54d39a
2ae4f75
2d6fc30
7757419
a6b6cd3
1f031d8
d7d35cd
1c76cc3
ee5ac1a
3d866bf
d00bbce
d8b209c
28ba76f
b18a1a2
4ea58bd
e615a86
edc46d6
d51eac9
68f34fe
81bc25e
3cc4387
e74d823
be43d23
48ea49e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
��# HRProject
HRProject
INSTALLATION
Open command line and run the following commands to setup
git clone https://github.com/kamadi2000/HRProject.git
cd HRProject
To install backend
npm start
RUN
Start backend
npm start
ROUTES
User Routes. 1.
/viewleavecount
Get the remaining leave count of each employee. An array containing leaves responding to each leave type will be returned from backend.2.
/applyleave
Apply a leave by an employee. If the leave request was successfully sent and there are remaining leaves from the type requested. Then a message is sent from backend saying that 'request was successfully sent'.If there are no remaining leaves from the requested type 'you have no leaves' message will be sent.If the request sent was incomplete 'incomplete request' message will be sent.3.
/viewrequest
Supervisor can view leave requests of employees. An array containing leave details will be passed with the status as pending.4.
/leavestatus
Return the leaves that the employee has taken so far. Pass an array containing all the leave details of the employee.5.
/requestvalidation
If the Supervisor approve the leave then return the leave status and a message as "successfully validated".6.
/checkrecords
Return all the records related to an employee. when an valid employee id is given it returns all the employee datials and emergency details related to that employee. If an invalid employee id is given it returns a message as "Invalid employee ID".7.
/emergancydetail
Return all the emergency detaials related to the given employee ID.8.
/givepermission
Changing access level users. check whether the input employee ID is valid . If it is invalid returns a message as "Invalid employee ID". If an access level above 3 is selected then return a message as "Invalid access level".Update the access level of the user.9.
/viewpim
Return all the records related to an employee. when an valid employee id is given it returns all the employee datials and emergency details related to that employee. If an invalid employee id is given it returns a message as "Invalid employee ID".10.
/createuseraccount
Create a new user account create a new user record in table. check whether the confirm password is matching if not return message:"confirm password is not matched". check whether the user already exist.If not then update the tables with user details11.
/createhraccount
Create a new hr account create a new record in table. check whether the confirm password is matching if not return message:"confirm password is not matched". check whether the HR account already exist. If not then update the tables with user details.12.
/deleteaccount
remove an employee records related to an employee from the database. Check if the employee ID is valid , If it is valid delete all the records related to that employee ID. only HR manager has the permission for this.13.
/deletehraccount
remove HR account from the database. delete all the records related to the HR manager from the database.14.
/editemployeebyuser
Edit employee details. check whether the passed data are valid.If it is valid update the employee table and send a message "successfully updated".15.
/editemergancybyuser
edit emergency details. check whether the passed data are valid.If valid update the emergency_detail table and send a message "successfully updated"16.
/editemployeebyhr
Edit employee details only by HR manager check whether the passed data are valid.If valid update the employee table and send a message "successfully updated".17.
/editemergancybyhr
Edit emergency details only by HR manager.check whether the passed data are valid.If valid update the employee table and send a message "successfully updated".18.
/changepassword
change the password of an account check whether the confirm password is matching if not return message:"confirm password is not matched" If the employee ID is valid update the password in the user table.19.
/addEmployee
Add a new employee accout create a new record with employee details. Add all the PIM informations related to the employee.20.
/addHr
Add a new HR account.Only the admin da do this. Create a new record with employee details.Add all the PIM informations related to the HR manager.ReportRoutes
1.
/reportemployee
Get a reprot including all the details about the employees in a department.2.
/reportleave
get a report including all the details about total leaves given in a period of time by a single department.3.
/reportemployee/jobtitle
Get employee reports grouped by job title.4.
/reportemployee/department
Get employee reports grouped by department.5.
/reportemployee/paygrade
Get employee reports grouped by paygrade.post -> localhost:8000/login
post -> localhost:8000/token
delete -> localhost:8000/logout
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.