aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJoelHMikael <53561102+JoelHMikael@users.noreply.github.com>2022-01-18 18:57:53 +0200
committerGitHub <noreply@github.com>2022-01-18 18:57:53 +0200
commita259127b9fa0349c73340c882f6525f27f7caaed (patch)
treead18984d3031ce6bc7ccb549415c58d77672a53f /README.md
parent8f711465194f6779271825bdb2413658880f4c18 (diff)
parentedf044c1e1e0c751229549dd9d14062b230149be (diff)
downloadLYLLRuoka-a259127b9fa0349c73340c882f6525f27f7caaed.tar.gz
LYLLRuoka-a259127b9fa0349c73340c882f6525f27f7caaed.zip
Merge pull request #1 from JoelHMikael/MYSQLDB
Mysqldb
Diffstat (limited to 'README.md')
-rw-r--r--README.md29
1 files changed, 27 insertions, 2 deletions
diff --git a/README.md b/README.md
index 3f86b3f..5ac073c 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,30 @@
# Food-app
-This is a site under development that tells you when your lesson is, when your lunch break is and what the school lunch of the day is.
+Readme coming soon!
## Setup
-You can add a link to this site to your startup folder to always get to know when your lunch break is when you turn on your computer in school.
+If you want to set up the server, you will have to get a SSL certificate or generate one yourself. If you want to run a dedicated server that can update, you also need to add the cron jobs from crontab\_add. You must create a MySQL DB and give its login info in ../dblogin.txt. The database should have the following tables set up:
+
+CREATE TABLE shiftnames (
+ day INT,
+ id INT,
+ name VARCHAR(128) NOT NULL,
+ PRIMARY KEY (day, id)
+);
+CREATE TABLE classes (
+ course VARCHAR(6) PRIMARY KEY,
+ class VARCHAR(4)
+);
+CREATE TABLE shifts (
+ day INT,
+ shift INT,
+ course VARCHAR(6),
+ teacher VARCHAR(4),
+ class VARCHAR(4),
+ PRIMARY KEY (day, course)
+);
+CREATE TABLE devs (
+ id INT PRIMARY KEY AUTO_INCREMENT,
+ name VARCHAR(30) NOT NULL,
+ description VARCHAR(128),
+ contact VARCHAR(40)
+);