mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2024-11-22 07:26:33 +03:00
Damir Modyarov
21c02df7f0
* Implement short link redirect service * Silence linter where imports needs to be below setup * Improve unknown link error * Provide session to worker to convert it to user id * Remove main entrypoint in favor of uvicorn command * Add base path for relative URLs * Add docs on launching redirect service to README.md * Fix wrong task argument name * Lint service code
47 lines
735 B
Markdown
47 lines
735 B
Markdown
# akarpov
|
|
|
|
My collection of apps and tools
|
|
|
|
Writen in Python 3.11 and Django 4.2
|
|
|
|
## Start up
|
|
|
|
### installation
|
|
```shell
|
|
$ poetry install & poetry shell
|
|
$ python3 manage.py migrate
|
|
```
|
|
|
|
### local run
|
|
```shell
|
|
$ python3 manage.py runserver
|
|
$ celery -A config.celery_app worker --loglevel=info
|
|
$ uvicorn redirect.app:app --reload
|
|
```
|
|
|
|
|
|
### local run via docker
|
|
|
|
```shell
|
|
$ docker-compose -f local.yml up
|
|
```
|
|
- server - http://127.0.0.1:8000
|
|
- mail - http://127.0.0.1:8025
|
|
|
|
|
|
### refactoring code
|
|
```shell
|
|
$ pre-commit install
|
|
$ black akarpov
|
|
$ no_implicit_optional akarpov
|
|
$ mypy --config-file setup.cfg akarpov
|
|
```
|
|
|
|
### list of projects:
|
|
- blog
|
|
- fileshare
|
|
- music radio + processor
|
|
- test platform
|
|
- short link generator
|
|
- about me app
|