Serves json responses of Spanish & Italian verbs and their conjugations in various tenses and moods. React client to consume it
{
id: 578,
infinitive: "sonar",
infinitiveEnglish: "to sound; to ring",
gerund: "sonando",
pastParticiple: "sonado",
conjugations: [
{
id: 9794,
tense: "Presente",
tenseEnglish: "Present",
form1s: "sueno",
form2s: "suenas",
form3s: "suena",
form1p: "sonamos",
form2p: "sonáis",
form3p: "suenan"
},
...
]
}
- Make sure you have
docker
anddocker-compose
installed on your machine- To install docker: https://docs.docker.com/docker-for-mac/install/
brew install docker-compose
docker-compose up --build -d
docker ps
to find the container id of conjugaciones-backenddocker exec -it <conjugaciones-backend id> /bin/bash
- from inside docker container:
python
(to open python interpreter)from src.models import *
from app import db
db.create_all()
db.session.commit()
db.session.close()
exit()
export PYTHONPATH=.
python scripts/verb_csv_importer.py ./verbs.csv
python scripts/import_italian_verbs.py ./italian_verbs_2019_04_12.csv
- backend is now served on
localhost:8000
- react dev server is served on
localhost:9000