Improve first time installation experience

This commit is contained in:
Rien Maertens 2018-10-02 01:21:19 +02:00
parent 6194ea59e4
commit 659fad1356
No known key found for this signature in database
GPG key ID: 943CAB70C511D23C
2 changed files with 30 additions and 0 deletions

View file

@ -1,2 +1,27 @@
# Mattermore
Mattermost integrations
## Installation guide
1. Clone this repository
```
git clone ssh://git@git.zeus.gent:2222/mattermost/mattermore.git
cd mattermore
```
2. Create a virtual environment
```
virtualenv -p python3 venv
```
3. Install the pip requirements
```
./venv/bin/pip install -r requirements.txt
```
4. Create the database
```
./venv/bin/python setup_database.py
```
5. Start the server
```
./venv/bin/python run_dev.py
```

View file

@ -17,6 +17,11 @@ response_setting = "in_channel"
from app import models
@app.route('/', methods=['GET'])
def hello_world():
message = "It's aliiiiiiiiiiiiiiiiiiiiiive!\n"
message += f"There are {models.User.query.count()} users in the database."
return message
def check_regular(username):
'''Check if a user has the permissions of a regular user.'''