26 lines
845 B
Plaintext
26 lines
845 B
Plaintext
docker exec -it trading_postgres psql -U trader -d trading_db ( to enter the database)
|
|
\dt( to see all the tables)
|
|
SELECT * FROM app_session;(opening the storage)
|
|
|
|
SELECT run_id, status, started_at
|
|
FROM strategy_run
|
|
ORDER BY created_at DESC
|
|
LIMIT 1;
|
|
(to check whether startedy running or not)
|
|
|
|
2. check how many users are running
|
|
SELECT user_id, run_id, status, started_at
|
|
FROM strategy_run
|
|
WHERE status = 'RUNNING';
|
|
|
|
http://localhost:3000/admin/users( admin dashboard)
|
|
|
|
powershell -ExecutionPolicy Bypass -File "C:\Users\91995\Desktop\thigal\Data-Sage\Data-Sage\stop_all.ps1"
|
|
powershell -ExecutionPolicy Bypass -File "C:\Users\91995\Desktop\thigal\Data-Sage\Data-Sage\start_all.ps1"
|
|
|
|
|
|
|
|
how to test
|
|
1. terminal 1 - backend should be running
|
|
2. terminal 2 - C:\Users\91995\Desktop\thigal\Data-Sage\Data-Sage>.\.venv\Scripts\python -m pytest -q
|