This is the repo for the codes corresponding to generating the SIMPLE website, designed to be as interactive as possible.
To run the application locally, clone the application repo and move into it with:
git clone https://github.com/SIMPLE-AstroDB/SIMPLE-web.git
cd SIMPLE-web
Then, if you are running conda (recommended):
conda env create -f environment.yml
Get a fresh copy of the database from the binary repo.
wget https://raw.githubusercontent.com/SIMPLE-AstroDB/SIMPLE-binary/main/SIMPLE.sqlite
Then run the application with
python -m simple_app.app_simple
For more options (help) run
python -m simple_app.app_simple -h
Launch a browser and enter the URL http://127.0.0.1:8000.
If you have changed either the host or port with system arguments, use those instead.
We also recommend keeping up to date with the repo changes, and most importantly, the astrodbkit package:
git pull
pip install -Ur requirements.txt
You can also get the latest copy of the SQLite database binary file again with:
wget https://raw.githubusercontent.com/SIMPLE-AstroDB/SIMPLE-binary/main/SIMPLE.sqlite
The major requirement for running this program on Apache
is mod_wsgi
Refer to our GitHub Wiki pages for more detailed setup instructions.
For feedback, questions, or if you've found an error, please create an Issue here.
The database repo can be found here.
This application builds and expands on the original code used by:
- ONCdbWeb built by the ONCdb Team at STScI
- AstrodbWeb built by BDNYC at AMNH