Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmpt-370-group-project-group26
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eyan Cunningham (esc568)
cmpt-370-group-project-group26
Commits
85e87fb0
Commit
85e87fb0
authored
3 years ago
by
Rafi Zereselasie (raz070)
Browse files
Options
Downloads
Patches
Plain Diff
Updated the README to specify where the sql file is, and how to configure the client.
parent
acaad964
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+44
-9
44 additions, 9 deletions
README.md
with
44 additions
and
9 deletions
README.md
+
44
−
9
View file @
85e87fb0
...
...
@@ -4,22 +4,22 @@ To run the scheduling app properly you must have the database running and the se
How to set up the MySQL database:
- Download and run the MySQL Installer, make sure that MySQL Server
is installed
(optionally install MySQL Workbench)
.
- Download and run the MySQL Installer, make sure that MySQL Server
and MySQL
Workbench are installed
.
- Create a MySQL server and with whatever host address you like and an available
port. If your running it locally than you can keep it these values as default.
- In MySQL open the sql file "ScheduleApp.sql" and execute the
following
commands:
- In MySQL open the sql file "ScheduleApp.sql"
in the repository
and execute the
following
commands:
* create database ScheduleApp;
* use ScheduleApp;
* create table Employees(
employee_ID INT NOT NULL auto_increment,
first_name varchar(25),
last_name varchar(25),
primary key (employee_ID)
);
last_name varchar(25),
primary key (employee_ID)
);
* create table Shifts(
shift_id INT NOT NULL auto_increment UNIQUE,
shift_id INT NOT NULL auto_increment UNIQUE,
full_date DATE,
start_time INT,
end_time INT,
...
...
@@ -27,6 +27,35 @@ How to set up the MySQL database:
PRIMARY KEY (shift_id),
FOREIGN KEY (employee_ID) REFERENCES Employees(employee_ID)
);
* create table TimeOff(
ID int not null auto_increment unique,
startDate date,
endDate date,
employeeID int,
approved boolean,
reason varchar(10),
primary key (ID),
foreign key (employeeID) references Employees(employee_ID)
);
* create table Availabilities(
ID int not null auto_increment unique,
employeeID int unique,
sundayStart int default 0,
sundayEnd int default 2359,
mondayStart int default 0,
mondayEnd int default 2359,
tuesdayStart int default 0,
tuesdayEnd int default 2359,
wednesdayStart int default 0,
wednesdayEnd int default 2359,
thursdayStart int default 0,
thursdayEnd int default 2359,
fridayStart int default 0,
fridayEnd int default 2359,
saturdayStart int default 0,
saturdayEnd int default 2359,
foreign key (employeeID) references Employees(employee_ID)
);
- Open the 'server' tab at the top and select 'server status', and make sure that
the server status is 'Running'
...
...
@@ -42,4 +71,10 @@ How to set up the Scheduling Server:
to the
* dbUser: The user name of the MySQL server.
* dbPass: The password of the MySQL password.
-
Save, then run the main method.
\ No newline at end of file
- Save, then run the main method.
How to set up the Scheduler Client:
- In the managerLoginClicked method in the Controller.java file change the hostname and port in the
Modal constructor to the ip address and port number of the server.
-
Save, then run the main method in the ScheduleApp.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment