Full Stack application which tracks ens domains. User can keep a list of domains they wish to track by ammending watchlsits/watch.txt file.
hawk_demo.mp4
- Start mysql server. Run
mysql.server start - Run
npm run setup - Run
. venv/bin/activate - Run
pip install -e . - Run
clean_slate - Run
python app.py - Run
cd frontend/ - Run
npm run start
- Modify any table in
backend/models/*.pyfile. - Run
alembic revision --autogenerate -m "describe model change(s)". - Inspect newly created
alembic/versions/*.pyfile to ensure changes have been captured accurately. - Run
alembic upgrade headto update db to latest version.
/usr/local/opt/mysql/bin/mysqld_safe --datadir=/usr/local/var/mysql brew services restart mysql mysql.server stop mysql.server start mysql -u root -h localhost -p hawk mysql -h sqlite:////Users/ancientevil/0x/hawk/ENS.db -u root
EXTRA_OPTIONS = --http.api eth,engine,net,web3,txpool
- Run
npx create-react-app frontend - Add
"proxy": "http://localhost:5000",tofrontend/package.json. - Run
npm run build.
- Clone to local workspace.
- Run
brew install mysqlif mysql not already installed. - Run
python3 -m venv venv - Run
. venv/bin/activate - Run
pip install -e . - Run
alembic init alembic - Run
mysql.server start - Run
mysql -h localhost -u root -p& insert password. - Run
create database hawk; - Run
python app.pyto start server on port 5000. - Run
curl http://127.0.0.1:5000/api/v1/healthto check server status.