Improve first time installation experience
This commit is contained in:
parent
6194ea59e4
commit
659fad1356
2 changed files with 30 additions and 0 deletions
25
README.md
25
README.md
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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.'''
|
||||
|
|
Loading…
Reference in a new issue