Skip to content

Repository files navigation

SMR

SECTION : Installation and User Guide

[ 1 ] System Environment Requirement

  1. Install PostgreSQL on the computer

  2. Install python >=3.9

  3. Google Chrome (latest version)

  4. Install latest git version

[ 2 ] Prepare basic project enviorment and create an virtual enviorment of python

  1. Create a folder in computer to storage the project file and open a terminal in this folder:

git clone https://github.com/dtepp/SMR.git

cd SMR

python -m venv venv

venv\Scripts\activate(windows) OR: source venv/bin/activate(mac)

pip install -r requirements.txt

  1. Open pgAdmin program on your computer and create a Databases call SchoolMajor

  2. Use the DataBase file to restore the SchoolMajor database image

[ 3 ] Deploy the School Major Recommend system locally with virtual enviorment just created

  1. Change the defalut PostgreSQL username and password to your database username and password in app.py: image

  2. In project folder terminal using virtual environment:

flask db init

flask db migrate

flask db upgrade

flask run

[ 4 ] Run the systems on browser

Go to URL using web browser**http://127.0.0.1:5000 Or: Directly click the link on the frontend terminal

[ 5 ] DialogFlow configuration

  1. Download the mycryptobot.zip file.

  2. Open the DialogFlow website and sign in with your account.

  3. Go to Settings, and click Export and Import, and choose IMPORT FROM ZIP: img

  4. Download ngrok.exe or ngrok binary to your machine from ngrok.com, then:

cd into the folder holding ngrok.exe

ngrok.exe http 5000

  1. Click Fulfillment on DialogFlow, and click the Enable button of the Webhook. Then copy the Forwarding link of the ngrok, and paste it in the URL line. Don't forget to add /webhook after the link: (Also DON'T forget to click SAVE at the bottom of the page) img

[ 6 ] Telegram Bot configuration

In your Dialogflow, please note the left sidebar, and click Integrations and scroll down, find Telegram.

Click Telegram, and paste the Telegram Token:

6029920369:AAH43WlnyDpQCx6zHi0o0N2mG_tW9zezrzc

img

Then you can open your Telegram app, and search "UniversityRecommenderBot", you will find a bot named University_bot, click it and talk to it!

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages