Merge pull request #3 from ZeusWPI/feature/first-time-install-experience

Improve first time installation experience
This commit is contained in:
redfast00 2018-10-02 01:28:15 +02:00 committed by GitHub
commit bc8551db79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -1,2 +1,27 @@
# Mattermore # Mattermore
Mattermost integrations 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 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): def check_regular(username):
'''Check if a user has the permissions of a regular user.''' '''Check if a user has the permissions of a regular user.'''