Updated README and comments in the configuration #16
This commit is contained in:
parent
9bc9d519c0
commit
159e1cef7d
2 changed files with 37 additions and 17 deletions
52
README.md
52
README.md
|
@ -1,15 +1,15 @@
|
||||||
# Drinks Manager (season 2)
|
# Drinks Manager (Season 3)
|
||||||
|
|
||||||
Note: This software is tailored to my own needs.
|
Note: This software is tailored to my own needs.
|
||||||
I probably won't accept feature requests, and don't recommend you
|
I probably won't accept feature requests, and don't recommend you
|
||||||
to use this software if this isn't exactly what you are looking for.
|
to use this software if this isn't exactly what you are looking for.
|
||||||
|
|
||||||
Can't keep track of the number of drinks your guests drink?
|
Can't keep track of the number of drinks your guests drink?
|
||||||
Now you have a web interface that *really tries* to make things less complicated- for
|
Now you have a web interface that *really tries* to make things
|
||||||
you and your guests.
|
less complicated- for you and your guests.
|
||||||
|
|
||||||
This (exaggeration intended) most incredible piece of software is written in Python,
|
This (exaggeration intended) most incredible piece of software is
|
||||||
HTML, CSS, JS, Bash and uses Django and PostgreSQL.
|
written in Python, HTML, CSS, JS, Bash and uses Django and PostgreSQL.
|
||||||
You have to bring your own PostgreSQL Database though.
|
You have to bring your own PostgreSQL Database though.
|
||||||
|
|
||||||
# Getting started
|
# Getting started
|
||||||
|
@ -26,30 +26,50 @@ Beneath a `PostgreSQL` DBMS, you need the following things:
|
||||||
- `pip`
|
- `pip`
|
||||||
- `Python` header files (RHEL: `python3-devel`, Ubuntu: `python3-dev`)
|
- `Python` header files (RHEL: `python3-devel`, Ubuntu: `python3-dev`)
|
||||||
|
|
||||||
|
## Database
|
||||||
|
|
||||||
|
This project is using PostgreSQL. After creating a
|
||||||
|
user and database for this application, make shure to
|
||||||
|
```sql
|
||||||
|
revoke all on schema public from PUBLIC;
|
||||||
|
```
|
||||||
|
and revoke/grant other privileges accordingly to secure the
|
||||||
|
database against public access.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Create the configuration file by copying `./data/config.example.yml`
|
||||||
|
to `./data/config.yml`, and modify it for your needs.
|
||||||
|
|
||||||
## Create Environment & Install dependencies
|
## Create Environment & Install dependencies
|
||||||
|
|
||||||
Run the following from the main directory:
|
Run the following from the main directory:
|
||||||
|
|
||||||
```
|
```
|
||||||
./scripts/setup-env.sh
|
./scripts/setup-env.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Activate Venv
|
## Create admin account
|
||||||
|
```
|
||||||
|
./scripts/create-admin.sh
|
||||||
|
```
|
||||||
|
This also runs all necessary migrations.
|
||||||
|
|
||||||
**On every new session**, before running commands with manage.py or developing, you have to activate the venv:
|
# Activate venv
|
||||||
|
|
||||||
|
**On every new session**, before running commands with
|
||||||
|
manage.py or developing, you have to activate the venv:
|
||||||
```
|
```
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
```
|
```
|
||||||
|
|
||||||
If you see `(venv)` before your command prompt, it worked!
|
If you see `(venv)` before your command prompt, it worked!
|
||||||
|
|
||||||
##
|
|
||||||
|
|
||||||
# Configuration
|
|
||||||
|
|
||||||
see [Configuration](docs/Configuration.md)
|
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
...
|
To start the Application and Webserver, run
|
||||||
|
```
|
||||||
|
./start.sh
|
||||||
|
```
|
||||||
|
or
|
||||||
|
```
|
||||||
|
./start.sh --devel
|
||||||
|
```
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
app:
|
app:
|
||||||
# The secret key, used for security protections
|
# The secret key, used for security protections
|
||||||
# This MUST be a secret, very long, random string
|
# This MUST be a secret, very long (40+ characters), random string
|
||||||
secret_key: "!!!insert random data!!!"
|
secret_key: "!!!insert random data!!!"
|
||||||
# The port for the asgi application
|
# The port for the asgi application
|
||||||
# This should be blocked by the firewall
|
# This should be blocked by the firewall
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue