diff --git a/README.md b/README.md index 6c045ef5..8da8e297 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,13 @@ Celery-based web crawler admin platform for managing distributed web spiders reg ## Installation ```bash -pip install -r requirements.txt +# install the requirements for backend +pip install -r ./crawlab/requirements.txt +``` + +```bash +cd frontend +npm install ``` ## Configure @@ -18,18 +24,14 @@ Please edit configuration file `config.py` to configure api and database connect ## Quick Start ```bash -# run web app -python app.py - -# run flower app -python ./bin/run_flower.py - -# run worker -python ./bin/run_worker.py +# run all services +python manage.py run_all ``` ```bash -# TODO: frontend +# run frontend client +cd frontend +npm run dev ``` ## Architecture diff --git a/crawlab/manage.py b/crawlab/manage.py index 2b6223f6..98e7226a 100644 --- a/crawlab/manage.py +++ b/crawlab/manage.py @@ -97,6 +97,8 @@ def main(action): p_flower.start() p_app = Process(target=run_app) p_app.start() + p_worker = Process(target=run_worker) + p_worker.start() if __name__ == '__main__': diff --git a/docs/.DS_Store b/docs/.DS_Store new file mode 100644 index 00000000..e3b1da20 Binary files /dev/null and b/docs/.DS_Store differ diff --git a/docs/img/crawlab-architecture.png b/docs/img/crawlab-architecture.png new file mode 100644 index 00000000..fcac460f Binary files /dev/null and b/docs/img/crawlab-architecture.png differ