Start with cloning the repository and installing dependencies:
$ git clone https://github.com/srijal30/genuine-djinn.git
$ python3 -m pip install -r requirements.txt
$ python3 -m spacy download en_core_web_sm # install nlp
Now, to start the app run the following:
$ python3 main.py -a app
If you want to run your own server instead of the default one, you first need to setup the database.
Note: This assumes you already have postgres installed.
$ echo DB_SERVER=postgresql://postgres:postgres@localhost:5432/ > .env
$ python3 -m venv .venv # a venv is required for prisma to work properly
$ source .venv/bin/activate
$ npm i -g prisma # this is only if prisma isnt already installed
$ prisma db push
$ python3 -m prisma generate
You can then run the server like so:
$ python3 main.py -a server