akarpov/README.md

53 lines
883 B
Markdown
Raw Normal View History

2022-11-23 11:41:43 +03:00
# akarpov
My collection of apps and tools
2023-04-07 23:19:46 +03:00
Writen in Python 3.11 and Django 4.2
2022-12-20 19:29:29 +03:00
2023-08-07 10:25:22 +03:00
## Start up
2023-06-21 17:02:53 +03:00
2023-08-07 10:25:22 +03:00
### installation
2023-06-21 17:02:53 +03:00
```shell
2023-08-07 10:25:22 +03:00
$ poetry install & poetry shell
2023-08-17 01:05:56 +03:00
$ ./spacy_setup.sh
2023-06-21 17:02:53 +03:00
$ python3 manage.py migrate
2023-08-07 10:25:22 +03:00
```
### local run
```shell
2023-06-21 17:02:53 +03:00
$ python3 manage.py runserver
$ celery -A config.celery_app worker --loglevel=info
$ uvicorn redirect.app:app --reload
2023-06-21 17:02:53 +03:00
```
2022-11-25 12:18:57 +03:00
### local run via docker
2022-12-20 19:29:29 +03:00
2022-11-25 12:18:57 +03:00
```shell
$ docker-compose -f local.yml up
2022-11-23 11:41:43 +03:00
```
2023-08-17 01:05:56 +03:00
Install file preview dependencies
```shell
$ docker-compose -f local.yml exec django /install_preview_dependencies
```
2022-11-25 12:18:57 +03:00
- server - http://127.0.0.1:8000
- mail - http://127.0.0.1:8025
2023-02-16 10:38:42 +03:00
### refactoring code
```shell
2023-08-07 10:25:22 +03:00
$ pre-commit install
2023-02-16 10:38:42 +03:00
$ black akarpov
$ no_implicit_optional akarpov
$ mypy --config-file setup.cfg akarpov
```
2023-04-07 23:19:46 +03:00
### list of projects:
- blog
- fileshare
- music radio + processor
- test platform
- short link generator
- about me app
2023-08-17 01:05:56 +03:00
- gallery