Skip to content
Snippets Groups Projects
Commit 5c3ff8e8 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

add documentation

parent 9084e69a
No related branches found
No related tags found
1 merge request!4add documentation
Pipeline #35440 passed
# ADEX-BACKEND-FASTAPI # ADEX-BACKEND-FASTAPI
## Development/Test
## Development * Documentation : https://support.astron.nl/confluence/display/SDCP/ADEX+backend
* Deployment Diagram: https://app.diagrams.net/#G10-LtvKbhC-yzjVoTIg1bnr1wBKsA4s-V
Deployment Diagram: https://app.diagrams.net/#G10-LtvKbhC-yzjVoTIg1bnr1wBKsA4s-V
### localhost (laptop) ### localhost (laptop)
* http://localhost:8000/adex-fastapi/skyviews/ * http://localhost:8000/adex-fastapi/skyviews/
...@@ -14,6 +15,7 @@ Deployment Diagram: https://app.diagrams.net/#G10-LtvKbhC-yzjVoTIg1bnr1wBKsA4s-V ...@@ -14,6 +15,7 @@ Deployment Diagram: https://app.diagrams.net/#G10-LtvKbhC-yzjVoTIg1bnr1wBKsA4s-V
* https://sdc-dev.astron.nl/adex-fastapi/skyviews_rectangle/?ra_min=40&ra_max=50&dec_min=25&dec_max=35&limit=1000 * https://sdc-dev.astron.nl/adex-fastapi/skyviews_rectangle/?ra_min=40&ra_max=50&dec_min=25&dec_max=35&limit=1000
### SURF Research Cloud (dev environment) ### SURF Research Cloud (dev environment)
* frontend app for testing: http://145.38.187.31/aladin-testbed/
* http://145.38.187.31/adex-fastapi/skyviews/ * http://145.38.187.31/adex-fastapi/skyviews/
* http://145.38.187.31/adex-fastapi/skyviews_rectangle/?ra_min=40&ra_max=50&dec_min=25&dec_max=35&limit=1000 * http://145.38.187.31/adex-fastapi/skyviews_rectangle/?ra_min=40&ra_max=50&dec_min=25&dec_max=35&limit=1000
...@@ -28,7 +30,16 @@ manually drop the skyviews table ...@@ -28,7 +30,16 @@ manually drop the skyviews table
then load the data like this: then load the data like this:
On sdc-dev:
``` ```
sudo docker exec -it Postgres14 psql -U postgres -d adex_cache -c "DROP TABLE skyviews" docker exec -it adex-postgres psql -U postgres -d adex_cache -c "DROP TABLE skyviews"
docker exec -it adex-postgres psql -U postgres -d adex_cache -f /shared/sql/adex_cache.sql docker exec -it adex-postgres psql -U postgres -d adex_cache -f /shared/sql/adex_cache.sql
``` ```
Test: https://sdc-dev.astron.nl/adex-fastapi/skyviews/
On SURF:
```
sudo docker exec -it Postgres14 psql -U postgres -d adex_cache -c "DROP TABLE skyviews"
sudo docker exec -it Postgres14 psql -U postgres -d adex_cache -f /shared/adex_cache.sql
```
Test: http://145.38.187.31/adex-fastapi/skyviews/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment