Skip to content

IF-093-Python/CultureAnalyzer

Repository files navigation

CultureAnalyzer

Framework Build Status Quality Gate Status

Description

Culture analyzer - is a web application designed to compare culturally influenced values and sentiments of similar respondents from two or more countries. It allows scores to be computed on six dimensions of national culture.

Run application

Clone source code

git clone https://github.com/IF-093-Python/CultureAnalyzer.git

Option 1

  1. Install postgres, redis locally
  2. Create and activate env
virtualenv venv --no-site-packages && source venv/bin/activate
  1. Run install script
make install
  1. Run server on localost:8000
make runserver
  1. Open localhost:8000

Option 2

  1. Install docker, docker-compose.
  2. Build, up in background docker containers:
  • app(django, gunicorn, celery)
  • nginx
  • postgres
  • redis
make docker-build-up
  1. Open localhost

Useful commands(makefile)

  1. Show help
make help
  1. Install app requrements
make requirements
  1. Run tests with coverage, pylint
make build
  1. Create fake users(3 admins, 8 mentors, 20 trainees), store them in DB
make fakeusers
  1. Show running containers info(name, status, port)
make docker-ps
  1. Show logs
make docker-logs
  1. Open bash in container with entered name
make docker-bash