Skip to content

Build Application

Leon edited this page Feb 7, 2023 · 6 revisions

This page presents two easy ways to build the application.

Installation process (1) git clone

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

Alternative Installation Process (2) Docker

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.

Clone this wiki locally