generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 2
Build Application
Leon edited this page Feb 7, 2023
·
6 revisions
This page presents two easy ways to build the application.
The install.sh
for Ubuntu checks if there is a python, mysql installation on your computer and installs it if necessary.
git clone https://github.com/amosproj/amos2022ws01-firmware-scraper
# or download and unpack .zip amos2022ws01-firmware-scraper-main
cd amos2022ws01-firmware-scraper
./install.sh
# Make sure MySQL server is running
sudo systemctl start mysql.service
Add your username and password to the src/config.json
:
{
"database": {
"user": USERNAME,
"password": PASSWORD
},
Alternatively, use the environment variables MYSQL_USER
and MYSQL_PASSWORD
.
The install.sh
for Ubuntu checks if there is a python, mysql installation on your computer and install is if necessary.
Start the scraper via:
python -m src.core
git clone https://github.com/amosproj/amos2022ws01-firmware-scraper
#or download and unpack .zip mos2022ws01-firmware-scraper-main
cd amos2022ws01-firmware-scraper
docker-compose up --build
Requirements: docker should be installed on your machine.