Система хранения сообщений пользователей с ведением истории
Install python requirements
pip install -r requirements.txt
- Apply migrations
python manage.py migrate
- Create superuser with default login:password and start task on deleting old history
python manage.py init
- Start project
python manage.py runserver
- Start redis server
redis-server
- Init workers for celery
celery -A msgstore worker --concurrency=4 --beat --scheduler django --loglevel=info -n worker
- run front: message-store-vue
Build Setup of frontend
# serve with hot reload at localhost:8080 from directory .../msgstore-vue
npm run dev
# if not running, try:
sufo npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
localhost:8000/docs
To run tests in root directory:
./manage.py test
To get tests coverage info: Run:
coverage html
Then open file htmlcov/index.html in browser