Compare commits

...

2 Commits

Author SHA1 Message Date
6bedeef48a
implement skills and languages endpoints 2021-06-07 22:04:03 +02:00
b161254363
add flag icons 2021-06-07 19:32:45 +02:00
276 changed files with 395 additions and 37 deletions

View File

@ -14,3 +14,6 @@ sqlalchemy = "*"
[requires] [requires]
python_version = "3.8" python_version = "3.8"
[scripts]
clean = "rm data/ki.sqlite"

View File

@ -19,3 +19,8 @@ flask run
``` ```
http://localhost:5000/ http://localhost:5000/
### Quellen
* [`./data/iso_639_1.csv`](https://de.wikipedia.org/wiki/Liste_der_ISO-639-1-Codes)
* [`./data/imgs/flags`](https://github.com/gosquared/flags)

2
app.py
View File

@ -10,7 +10,7 @@ load_dotenv(find_dotenv())
app = Flask(__name__) app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv("SQLALCHEMY_DATABASE_URI") app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv("SQLALCHEMY_DATABASE_URI")
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config["KI_DATA_PATH"] = os.path.dirname(__file__) + "/data" app.config["KI_DATA_DIR"] = os.path.dirname(__file__) + "/data"
db = SQLAlchemy(app) db = SQLAlchemy(app)
migrate = Migrate(app, db) migrate = Migrate(app, db)

3
data/.gitignore vendored
View File

@ -1,2 +1 @@
* ki.sqlite
!/.gitignore

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

BIN
data/imgs/flags/_kosovo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
data/imgs/flags/_mars.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

BIN
data/imgs/flags/_nato.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
data/imgs/flags/_wales.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
data/imgs/flags/ad.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
data/imgs/flags/ae.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

BIN
data/imgs/flags/af.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
data/imgs/flags/ag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

BIN
data/imgs/flags/ai.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
data/imgs/flags/al.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
data/imgs/flags/am.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

BIN
data/imgs/flags/an.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

BIN
data/imgs/flags/ao.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
data/imgs/flags/aq.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
data/imgs/flags/ar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

BIN
data/imgs/flags/as.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
data/imgs/flags/at.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

BIN
data/imgs/flags/au.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 B

BIN
data/imgs/flags/aw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 B

BIN
data/imgs/flags/ax.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

BIN
data/imgs/flags/az.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

BIN
data/imgs/flags/ba.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

BIN
data/imgs/flags/bb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

BIN
data/imgs/flags/bd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

BIN
data/imgs/flags/be.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

BIN
data/imgs/flags/bf.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

BIN
data/imgs/flags/bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

BIN
data/imgs/flags/bh.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

BIN
data/imgs/flags/bi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
data/imgs/flags/bj.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 B

BIN
data/imgs/flags/bl.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
data/imgs/flags/bm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
data/imgs/flags/bn.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
data/imgs/flags/bo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 686 B

BIN
data/imgs/flags/br.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
data/imgs/flags/bs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

BIN
data/imgs/flags/bt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
data/imgs/flags/bw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

BIN
data/imgs/flags/by.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 595 B

BIN
data/imgs/flags/bz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
data/imgs/flags/ca.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 486 B

BIN
data/imgs/flags/cc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

BIN
data/imgs/flags/cd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
data/imgs/flags/cf.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

BIN
data/imgs/flags/cg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

BIN
data/imgs/flags/ch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

BIN
data/imgs/flags/ci.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

BIN
data/imgs/flags/ck.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
data/imgs/flags/cl.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

BIN
data/imgs/flags/cm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

BIN
data/imgs/flags/cn.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

BIN
data/imgs/flags/co.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

BIN
data/imgs/flags/cr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 B

BIN
data/imgs/flags/ct.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
data/imgs/flags/cu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

BIN
data/imgs/flags/cv.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

BIN
data/imgs/flags/cw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B

BIN
data/imgs/flags/cx.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
data/imgs/flags/cy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
data/imgs/flags/cz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

BIN
data/imgs/flags/de.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

BIN
data/imgs/flags/dj.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

BIN
data/imgs/flags/dk.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

BIN
data/imgs/flags/dm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
data/imgs/flags/do.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 B

BIN
data/imgs/flags/dz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

BIN
data/imgs/flags/ec.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
data/imgs/flags/ee.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

BIN
data/imgs/flags/eg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

BIN
data/imgs/flags/eh.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 B

BIN
data/imgs/flags/er.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
data/imgs/flags/es.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 B

BIN
data/imgs/flags/et.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
data/imgs/flags/eu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
data/imgs/flags/fi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

BIN
data/imgs/flags/fj.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
data/imgs/flags/fk.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
data/imgs/flags/fm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

BIN
data/imgs/flags/fo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

BIN
data/imgs/flags/fr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

BIN
data/imgs/flags/ga.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

BIN
data/imgs/flags/gb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 B

Some files were not shown because too many files have changed in this diff Show More