Open Source Education Bot
Open Source Education Bot built by the Facebook Developer Circles community to help members contribute to open source projects.
Installation
requirement: python 3.6 or later
Start by cloning the repository localy and enter into the project folder.
git clone https://github.com/fbdevelopercircles/open-source-edu-bot
cd open-source-edu-bot
Using a virtual environment:
python3 -m venv venv
on Windows
py -3 -m venv venv
Activate the environment
Copy the environments file and adapt it:
cp .sample.env .env
Before you work on your project, activate the corresponding environment:
. venv/bin/activate
On Windows:
venv\Scripts\activate
Your shell prompt will change to show the name of the activated environment.
Install the require python package
pip install -r requirements.txt
Export environment varialbes
export FLASK_APP fbosbot
export FLASK_RUN_HOST 0.0.0.0
export FLASK_ENV development
**Compile de localisation files
cd src
pybabel compile -d locales
To start the application localy run
flask run
Using Docker and docker-compose:
If you have docker and docker-compose installed in your computer, just run
docker-compose up -d
Check your webhook with this command
curl -X GET "<YOUR HOST>/webhook?hub.verify_token=<YOUR VERIFY TOKEN>&hub.chalenge=CHALLENGE_ACCEPTED&hub.mode=subscribe&init_bot=true"
Contributors
Check the contributions graph here.
License
Open Source Education Bot is MIT licensed.