Skip to content

keeleleek/karp-backend

 
 

Repository files navigation

This package - code and documentation - is still under construction.

Karp is the lexical platform of Språkbanken.

Karp in Docker

For easy testing, use Docker to run Karp-b.

  • Follow the steps given here

  • Run docker-compose up -d

  • Test it by running curl localhost:8081/app/test

If you want to use Karp without Docker, keep on reading. Prerequisites

Installation

Karp uses virtuals envs for python. To get running:

  1. Install virtualenv using pip install virtualenv
  2. Create the virtual environment using virtualenv venv.
  3. Activate the virtual environment with source venv/bin/activate.
  4. pip install -r requirements.txt

Configuration

Copy config.json.example to config.json and make your changes. You will also need to make configurations for your lexicons. Read more [here](TODO manual.md).

Tests

TODO: DO MORE TESTS! Test that Karp-b is working by starting it python src/main.py

Packages

No packages published

Languages

  • Python 77.7%
  • HTML 22.3%