new: first commit !minor
This commit is contained in:
commit
5848134067
45 changed files with 2754 additions and 0 deletions
36
README.md
Normal file
36
README.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
## bernini
|
||||
|
||||
[](https://qa.fukurokuju.dev/catalin/bernini)
|
||||
|
||||
### dependencies
|
||||
|
||||
- `poetry`
|
||||
- `^python3.8` including development libraries
|
||||
|
||||
### up n runnin
|
||||
|
||||
```bash
|
||||
cp bernini/settings.py-template bernini/settings.py
|
||||
poetry install
|
||||
./wrapper mi # migrate
|
||||
./wrapper r # runserver at localhost:8000
|
||||
```
|
||||
#### server email configuration
|
||||
- open bernini/settings.py and fill these fields
|
||||
```python
|
||||
EMAIL_HOST = "some.smtp.server"
|
||||
EMAIL_PORT = "someort"
|
||||
EMAIL_HOST_USER = "someuser@some.server"
|
||||
EMAIL_HOST_PASSWORD = "somepassword"
|
||||
EMAIL_USE_TLS = True
|
||||
```
|
||||
- this will send an email when calling `/api/orders/{order}/sent` which will render `bernini/templates/order_sold.html` as body
|
||||
|
||||
### api
|
||||
- based on [Django REST framework](https://www.django-rest-framework.org/)
|
||||
- auth system using and extending django's `contrib.auth`
|
||||
- documentation available at
|
||||
- [/docs/openapi](http://localhost:8000/docs/openapi)
|
||||
- [/docs/swagger](http://localhost:8000/docs/swagger)
|
||||
- [/docs/redoc](http://localhost:8000/docs/redoc)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue