mirror of
https://github.com/wahyd4/crawlab.git
synced 2026-08-09 05:07:04 +10:00
updated README.md
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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__':
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
Reference in New Issue
Block a user