Skip to content

toubazi/passport-score-calculate

 
 

Repository files navigation

Getting Started

Interface

To run the frontend

cd interface
yarn
yarn dev

API

With Docker

cd api
docker compose up --build

Without docker

Activate your local virtual env

pipenv shell

Create virtual env and install dependencies:

pipenv install

Start the dev server:

  • first: make sure you have the .env file in the api folder, with proper values (clone the .env-sample if required and adjust it)
  • gunicorn -w 4 -k uvicorn.workers.UvicornWorker scorer.asgi:application
  • or uvicorn scorer.asgi:application --reload

Start the celery worker:

  • celery -A scorer worker -l DEBUG

Running redis locally:

  • docker run -d -p 6379:6379 redis

##Testing

API

In the ./api folder run (make sure your local virtual env is activated):

coverage run --source='.' manage.py test

pytest

  • use pytest to run tests. In ./api folder run pytest

bdd

Make sure you install the dev dependencies pipenv install --dev.

Cypress

In the ./test:

  • exec cypress tests: yarn cypress run
  • open cypress: yarn cypress open

About

Passport Scorer as a Service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 58.9%
  • TypeScript 25.4%
  • R 12.1%
  • Gherkin 1.7%
  • CSS 0.6%
  • Dockerfile 0.5%
  • Other 0.8%