Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrbuslov/face-id-cafes


https://github.com/mrbuslov/face-id-cafes

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Server
- **RUN** - `uvicorn src.main:app --reload --port 80 --host 127.0.0.1` (you have to be in backend folder)
- **Run celery locally** (you have to be in backend folder)
- Windows: `celery -A src.celery.worker.celery worker --loglevel=info --logfile=logs/celery/celery.log -P gevent`
- Others: `celery -A src.celery.worker.celery worker --loglevel=info --logfile=logs/celery/celery.log`

# Linters

***Note***: if you want to run linters, go to directory - it can be either *backend* or *frontend*
Be sure to run the backend if you want to "linter" it.
- **Backend**:
- `python flake8`
Runs flake8 (django version). Changes you should make *by yourself*.
- `python black .`
Changes files due to PEP8 style using black library.
- **Frontend**:
- `npm run lint:styles`
Runs style linter in the terminal. You'll see the errors, connected with code style in *.css* files.
- `npm run lint:styles:fix`
Fixes majority of style errors. There may be some error, that you have to fix *by yourself*.