Nobetle, is a shift scheduling web app for hospital departments.
Sample Schedule Screen
- User Interface Language: Turkish
- Written for Python 3
- MVC (Model-View-Controller)
- Data retrieved from and saved to MySQL Database
- Schedule script's static codes should be coded dynamically.
Nobetle require two working service:
- Main script
nobetle.py
as service - MySQL Database Service
Steps
- Get Source Code
- Install Python 3
- Install Requirements
- Install MySQL Database
- Create Tables
- Configure Services
You can get Nobetle code by two options;
- Download the Code
- Clone the Repo
git clone https://github.com/imesut/nobetle.git
cd nobetle
If Python 3 didn't installed into your system, download Python 3 from official Python Download page
To install requirements;
pip3 install -r requirements.txt
- Run these commands to install MySQL
sudo apt-get update
sudo apt-get install mysql-server
-
To determine a root password for MySQL;
sudo mysql_secure_installation
-
Initialize MySQL:
sudo mysql_install_db
-
Ensure MySQL service is running:
mysql.server start
-
Connecting to MySQL:
mysql -h localhost -u root -p
-
Then enter your MySQL root password.
-
Instal MySQL via .pkg installer
-
Ensure MySQL service is running:
mysql.server start
-
Connecting to MySQL:
mysql -h localhost -u root -p
-
Then enter your MySQL root password.
Table creation can be directly done by executing create_tables.sql
file.
To execute the file at MySQL shell;
source create_tables.sql
First user of Nobetle is owner user. And its database equivalent can be added to database by insert into method or basicly executing first_user.sql
file.
To execute the file at MySQL shell;
source first_user.sql