2023-08-08 03:02:26 +00:00
|
|
|
# hpos-data
|
|
|
|
|
|
2023-08-16 11:26:23 +05:30
|
|
|
Repo for all data related work.
|
2023-12-10 16:57:26 +05:30
|
|
|
`scripts` contains all the data processing scripts. `cloud-functions` conatins all the funtions written in Node.js and python.
|
|
|
|
|
`queries` contains sql queries. `train` has the training files and `cuda` folder is for cuda kernels.
|
2023-08-16 11:26:23 +05:30
|
|
|
|
|
|
|
|
|
2023-08-16 11:21:39 +05:30
|
|
|
### installation
|
2023-08-08 03:02:26 +00:00
|
|
|
|
2023-12-10 16:57:26 +05:30
|
|
|
pip install requirements.txt
|
2023-08-08 03:02:26 +00:00
|
|
|
|
|
|
|
|
|
2023-12-10 16:57:26 +05:30
|
|
|
### some functions are deplyed with endpoints
|
2023-08-21 14:39:15 +05:30
|
|
|
|
|
|
|
|
https://asia-south1-hpos-af3cc.cloudfunctions.net/registerUser
|
|
|
|
|
|
2023-12-08 21:43:32 +05:30
|
|
|
### gcloud set project
|
|
|
|
|
|
|
|
|
|
gcloud config set project hpos-qa
|
|
|
|
|
|
2023-09-07 18:04:46 +05:30
|
|
|
### deploy specific function
|
|
|
|
|
|
2023-12-08 21:43:32 +05:30
|
|
|
firebase deploy --only functions:consolidation
|
|
|
|
|
|
|
|
|
|
### deploy function with gcloud
|
|
|
|
|
|
|
|
|
|
gcloud functions deploy my_function --runtime=python311 --region=asia-south1 --trigger-http --allow-unauthenticated
|
|
|
|
|
|
2023-12-14 21:03:09 +05:30
|
|
|
gcloud functions deploy clearusers --runtime=python311 --region=asia-south1 --trigger-http --memory=512MB
|
2023-12-08 21:43:32 +05:30
|
|
|
|
|
|
|
|
### function log
|
|
|
|
|
|
2023-12-14 21:03:09 +05:30
|
|
|
gcloud functions logs read performance --region=asia-south1 --limit=100
|