Skip to content

Backend service for gamified language learning mobile app LlamaLang.

Notifications You must be signed in to change notification settings

LlamaLangApp/backend

Repository files navigation

LlamaLang backend

Running

  1. Clone the repository
  2. Run docker compose up

Dev setup

  1. Create venv in root folder
python -m venv venv
  1. Activate venv:

    For macOS:

    source venv/bin/activate
    

    For Windows:

     venv\Scripts\activate
    
  2. Install dependencies specified in requirements.txt

pip install -r requirements.txt
  1. Run the server
python manage.py runserver

If it doesn't work also try:

python manage.py runserver 0.0.0.0:8000

Development Notes

Testing

Login via /auth/token/login/ endpoint with the credentials of previously created user. On success, the endpoint will return token needed to use API. When making requests to API, put received token in Authentication header:

Authentication: token <your_token>

Regenerate open-api schema

Run

python .\manage.py generateschema --format=openapi-json --file openapi.json

About

Backend service for gamified language learning mobile app LlamaLang.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages