diff --git a/README.md b/README.md index cd4a9c2..7e516d5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,8 @@ e.g. by executing `go version`. Initialize the database. For developing, we recommend using sqlite: user@host:path/to/repo$ sqlite3 officeHours.db -init officeHoursSQLite.sql - sqlite> .read dummydatasqlite.sql + sqlite> .read dummydata/rooms.sql + sqlite> .read dummydata/summerCourses.sql Now start the development webserver, note that you need to manually restart it to code changes take effect. diff --git a/dummydata/rooms.sql b/dummydata/rooms.sql new file mode 100644 index 0000000..1a06c1a --- /dev/null +++ b/dummydata/rooms.sql @@ -0,0 +1,7 @@ +INSERT INTO `room` (name, max_occupy) VALUES +('S2|15-333', 1), +('S2|15-336', 2), +('S2|15-345', 2), +('S2|15-415', 1), +('S2|15-444', 1), +('Sonstige', 1024); diff --git a/dummydata/summerCourses.sql b/dummydata/summerCourses.sql new file mode 100644 index 0000000..ca13de7 --- /dev/null +++ b/dummydata/summerCourses.sql @@ -0,0 +1,37 @@ +INSERT INTO `course` (name) VALUES +('Algorithmic Discrete Mathematics'), +('Analysis II'), +('Analysis II (engl.)'), +('Aussagen- und Prädikatenlogik'), +('Discrete Optimization'), +('Einführung in die Algebra'), +('Einführung in die Finanzmathematik'), +('Einführung in die mathematische Modellierung'), +('Einführung in die Programmierung'), +('Einführung in die Stochastik'), +('Elementare PDE'), +('Elementare Zahlentheorie'), +('Graph Theory'), +('Höhere Mathematik II'), +('Integrationstheorie'), +('LA für Physik und Lehramt'), +('Linear Algebra II (engl.)'), +('Lineare Algebra II'), +('Logik und Grundlagen'), +('Mathe für Chemiker'), +('Mathe II für Informatik'), +('Mathe II für Bauwesen'), +('Mathe II für ET'), +('Mathe II für Maschinenbau'), +('Mathe IV für Maschinenbau'), +('Mathe IV (ET) / Mathe III (Inf) / Praktische Mathe (MEd)'), +('Mathe für MINT'), +('Mathe & Statistik für Biologen'), +('Mathematik im Kontext'), +('Model Theory'), +('Nichtlineare Optimierung'), +('Numerische Lineare Algebra'), +('Riemannsche Flächen'), +('Sobolev Spaces'), +('Topologie'), +('Vertrauenspersonen'); diff --git a/dummydata/winterCourses.sql b/dummydata/winterCourses.sql new file mode 100644 index 0000000..67a3bd7 --- /dev/null +++ b/dummydata/winterCourses.sql @@ -0,0 +1,41 @@ +INSERT INTO `course` (name) VALUES +('Algebra'), +('Analysis I'), +('Analysis I (engl.)'), +('Applied Proof Theory'), +('Automaten, Formale Sprachen und Entscheidbarkeit'), +('Complex Analysis'), +('Differentialgeometrie'), +('Einführung in die Numerische Mathematik'), +('Einführung in die Optimierung'), +('Einführung in die Programmierung'), +('Funktionalanalysis'), +('Geometrie für Lehramt'), +('Gewöhnliche Differentialgleichungen'), +('Höhere Mathematik I'), +('Introduction to mathematical logic'), +('LA für Physik und Lehramt'), +('Linear Algebra I (engl.)'), +('Lineare Algebra I'), +('Mathe für Chemiker'), +('Mathe I für Informatik'), +('Mathe I für Maschinenbau'), +('Mathe I für Bau'), +('Mathe I für ET'), +('Mathe III für Maschinenbau'), +('Mathe III für Bau'), +('Mathe III ET'), +('Mathe IV für Maschinenbau'), +('Mathe IV (ET) / Mathe III (Inf) / Praktische Mathe (MEd)'), +('Mathe für MINT'), +('Mathe & Statistik für Biologen'), +('Mathematik als gemeinsame Sprache der Naturwissenschaften'), +('Numerik gewöhnlicher Differentialgleichungen'), +('Numerische Mathe für MB (IV)'), +('Parabolische PDEs'), +('Partial Differential Equations'), +('Probability Theory'), +('Statistik I für Humanwissenschaftler'), +('Statistik I für WI'), +('Vertrauenspersonen'), +('Wahrscheinlichkeitstheorie'); diff --git a/dummydatasqlite.sql b/dummydatasqlite.sql deleted file mode 100644 index 0b4a452..0000000 --- a/dummydatasqlite.sql +++ /dev/null @@ -1,93 +0,0 @@ -INSERT INTO `room` (name, max_occupy) VALUES -('S2|15-333', 1), -('S2|15-336', 2), -('S2|15-345', 2), -('S2|15-415', 1), -('S2|15-444', 1), -('Sonstige', 1024); -INSERT INTO `course` (name) VALUES -('Algebra'), -('Algebraische Geometrie'), -('Algebraische Kurven'), -('Algebraische Topologie'), -('Algorithmic Discrete Mathematics'), -('Analysis I (engl.)'), -('Analysis I'), -('Analysis II (engl.)'), -('Analysis II'), -('Applied Proof Theory'), -('Aussagen- und Prädikatenlogik'), -('Automaten, Formale Sprachen und Entscheidbarkeit'), -('Banach- und C*-Algebren'), -('Classical and Non-Classical Model Theory'), -('Complex Analysis'), -('Darstellende Geometrie'), -('Darstellungstheorie'), -('Differentialgeometrie'), -('Differentialgeometrie für VI'), -('Diskrete Mathematik'), -('Diskrete Optimierung'), -('Einführung in die Algebra'), -('Einführung in die Finanzmathematik'), -('Einführung in die Numerische Mathematik'), -('Einführung in die Optimierung'), -('Einführung in die Programmierung'), -('Einführung in die Stochastik'), -('Einführung in die mathematische Modellierung'), -('Elementare PDE'), -('Elementare Zahlentheorie'), -('Funktionalanalysis'), -('Funktionalanalysis II'), -('Geometrie für Lehramt'), -('Gewöhnliche Differentialgleichungen'), -('Graph Theory'), -('Höhere Mathematik I'), -('Höhere Mathematik II'), -('Integrationstheorie'), -('Introduction to mathematical logic'), -('Kurvenschätzung'), -('LA für Physik und Lehramt'), -('Lebensversicherungsmathematik'), -('Linear Algebra I (engl.)'), -('Lineare Algebra I'), -('Linear Algebra II (engl.)'), -('Lineare Algebra II'), -('Logics of Knowledge and Information'), -('Manifolds'), -('Mathe für Chemiker'), -('Mathe I für Informatik'), -('Mathe I für Maschinenbau'), -('Mathe I für Bau'), -('Mathe I für ET'), -('Mathe II für Informatik'), -('Mathe II für Bauwesen'), -('Mathe II für ET'), -('Mathe II für Maschinenbau'), -('Mathe III für Maschinenbau'), -('Mathe III für Bau'), -('Mathe III ET'), -('Mathe IV für Maschinenbau'), -('Mathe IV (ET) / Mathe III (Inf) / Praktische Mathe (MEd)'), -('Mathe für MINT'), -('Mathe & Statistik für Biologen'), -('Mathematik als gemeinsame Sprache der Naturwissenschaften'), -('Mathematik im Kontext'), -('Mathematische Grundlagen der Quantenmechanik'), -('Mathematische Statistik'), -('Model Theory'), -('Nichtlineare Optimierung'), -('Numerik gewöhnlicher Differentialgleichungen'), -('Numerische Lineare Algebra'), -('Numerische Mathe für MB (IV)'), -('Parabolische PDEs'), -('Partial Differential Equations I'), -('Probability Theory'), -('Riemannsche Flächen'), -('Schadenversicherungsmathematik'), -('Sobolev Spaces'), -('Spieltheorie'), -('Statistik I für Humanwissenschaftler'), -('Statistik I für WI'), -('Stochastische Prozesse I'), -('Topologie'), -('Wahrscheinlichkeitstheorie');