Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 2 KB

README.md

File metadata and controls

62 lines (51 loc) · 2 KB

SIMPLE Website

This is the repo for the codes corresponding to generating the SIMPLE website, designed to be as interactive as possible.

Installation

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

Refresh the database

Get a fresh copy of the database from the binary repo.

wget https://raw.githubusercontent.com/SIMPLE-AstroDB/SIMPLE-binary/main/SIMPLE.sqlite

Running

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.

Updating

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

Apache Config

The major requirement for running this program on Apache is mod_wsgi

Refer to our GitHub Wiki pages for more detailed setup instructions.

Further Details

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: