Skip to content

mattlock12/conjugaciones_backend

Repository files navigation

Conjugaciones

Serves json responses of Spanish & Italian verbs and their conjugations in various tenses and moods. React client to consume it

Example:

{
    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"
        },
        ...
    ]
}

Getting Started

  1. Make sure you have docker and docker-compose installed on your machine
  2. docker-compose up --build -d
  3. docker ps to find the container id of conjugaciones-backend
  4. docker exec -it <conjugaciones-backend id> /bin/bash
  5. 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
  6. backend is now served on localhost:8000
  7. react dev server is served on localhost:9000

USE: https://www.randomlists.com/data/spanish-words.json

About

Backend for conjugator app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published