-
Git clone project:
$ git clone [email protected]:DValeriya/Slack.git -
Go to the project directory. Once inside the directory, run the following command to create your new virtual environment (more details):
$ python3 -m venv venv -
To start using this virtual environment, you need to activate it by running the activate script:
$ source venv/bin/activate
Now that the virtual environment is activated, you can use the Python package manager pip to install Flask:
(venv) $ pip install Flask
You must install following dependencies:
(venv) $ pip install flask
(venv) $ pip install flask-sqlalchemy
(venv) $ pip install psycopg2-binary
(venv) $ pip install slackeventsapi
(venv) $ pip install slackclient
(venv) $ pip install requets
Set environment variables like below:
(venv) $ export DB_USERNAME=" "
(venv) $ export DB_NAME=" "
(venv) $ export DB_PASSWORD=" "
(venv) $ export DB_PORT=" "
(venv) $ export DB_HOST=" "
(venv) $ export SLACK_SIGNING_SECRET=" "
(venv) $ export SLACK_APP_ID=" "
(venv) $ export SLACK_BOT_SCOPE=" "
(venv) $ export SLACK_CLIENT_SECRET=" "
(venv) $ export SLACK_ACCESS_TOKEN=" "
(venv) $ export SLACK_CLIENT_ID=" "
We’ll use the flask command to run the application. The command below will launch the embedded development server:
(venv) $ flask run