https://github.com/soltanoff/business_card
It's just my personal business card
https://github.com/soltanoff/business_card
bootstrap5 business-card fastapi jinja2
Last synced: about 1 month ago
JSON representation
It's just my personal business card
- Host: GitHub
- URL: https://github.com/soltanoff/business_card
- Owner: soltanoff
- License: mit
- Created: 2023-03-13T19:59:08.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-22T21:02:03.000Z (3 months ago)
- Last Synced: 2025-03-24T12:11:32.405Z (2 months ago)
- Topics: bootstrap5, business-card, fastapi, jinja2
- Language: Python
- Homepage:
- Size: 51.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yet One Business Card
[](https://pypi.python.org/pypi/fastapi)
[](https://opensource.org/licenses/MIT)
App configs `settings.py`:
```python
import os# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))STATIC_URL = '/static/'
STATIC_DIRECTORY = os.path.join(BASE_DIR, 'static')TEMPLATE_DIRECTORY = os.path.join(BASE_DIR, 'templates')
BASE_TEMPLATE_NAME = 'index.html'ALLOWED_HOSTS = ['*']
# ALLOWED_HOSTS = [] # for development
# ALLOWED_HOSTS = ['*'] # for docker-compose
# ALLOWED_HOSTS = ["your-production-domain"] # for production
```## How to run
### Without Docker:
```shell
pip install -r requirements.txt
python -m uvicorn main:app --host 0.0.0.0 --port 8000
```### With Docker
```shell
docker-compose up
```## Development tools
### Bandit tool
[Bandit](https://github.com/PyCQA/bandit) is a tool designed to find common security issues in Python code. To do this
Bandit processes each file, builds an AST from it, and runs appropriate plugins against the AST nodes. Once Bandit has
finished scanning all the files it generates a report.```shell
bandit -r .
```### flake8
[flake8](https://github.com/PyCQA/flake8) is a python tool that glues together pycodestyle, pyflakes, mccabe, and
third-party plugins to check the style and quality of some python code.```shell
flake8 .
```