1
0
Fork 0
 
 
 
 
 
Go to file
Jeff Moe 5a7751ab30 Install sqlite3 too 2022-12-11 12:36:13 -07:00
bin Fix workdir flag for celery with 5.0 change 2021-05-15 14:29:48 -04:00
contrib Fix initial installation process 2022-05-06 16:50:59 +03:00
db Update LatestTleSet entries after removing TLE source from distributable ones 2022-11-03 09:06:31 +00:00
docs Bump 'versioneer' version 2022-07-15 14:42:53 +03:00
satnogs-db-api-client minor updates to satnogs-db-api-client 2021-01-17 11:45:52 -05:00
.coveragerc Add some basic tests 2017-03-03 01:14:36 +02:00
.editorconfig Initial commit 2015-04-22 18:10:13 +03:00
.eslintignore Add dnd-helper for Do-Not-Track 2017-02-21 19:22:14 +02:00
.eslintrc.json Switch from jshint to eslint 2017-02-12 19:47:07 +02:00
.gitattributes Create an initial 'satnogs-db' package with no requirements specified 2018-11-06 13:32:43 +02:00
.gitignore New SatNOGS DB user interface 2020-07-25 22:08:44 +00:00
.gitlab-ci.yml Update to Django 4 2022-04-16 23:19:15 +03:00
.pylintrc Narrow ignored members to zmq library 2021-01-20 13:09:00 +02:00
.readthedocs.yml docs: Add requirements file 2020-12-29 17:17:39 +02:00
.stylelintrc Add stylelint 2017-02-12 19:47:28 +02:00
.yapfignore Fix YAPF dict formatting 2021-01-13 20:21:55 +02:00
CONTRIBUTING.md Update contribution and developing guides 2019-03-06 00:09:17 +02:00
Dockerfile Update to Django 4 2022-04-16 23:19:15 +03:00
LICENSE Fix license file to match original text version 2020-02-17 23:34:18 +02:00
MANIFEST.in Create an initial 'satnogs-db' package with no requirements specified 2018-11-06 13:32:43 +02:00
README-upstream.md mv upstream README 2022-12-11 12:30:13 -07:00
README.md Install sqlite3 too 2022-12-11 12:36:13 -07:00
conftest.py Improve testing and handling of telemetry upload API 2021-05-16 18:54:48 -04:00
docker-compose.cache.yml Utilize Docker cache to speed up building 2019-02-13 12:32:31 +02:00
docker-compose.yml docker-compose: Bump 'mariadb' image version 2022-11-25 14:36:50 +02:00
env-dist Add sentry-sdk for logging 2018-12-11 17:21:19 +02:00
gulpfile.js Revert "Remove eslint.failAfterError()" 2020-04-22 12:29:51 +03:00
manage.py Remove python3 migration remnants 2020-05-27 20:54:39 +02:00
package-lock.json Fix modal submit button functionality 2021-06-23 14:58:49 +03:00
package.json package and dependency updates 2021-05-14 20:24:23 -04:00
pyproject.toml pyproject.toml: Require 'setuptools' versions supporting PEP 517 2022-05-09 22:42:59 +03:00
requirements-dev.txt Update python libraries 2022-07-08 16:33:26 +03:00
requirements.txt Update python-satellitetle library 2022-07-08 16:38:17 +03:00
setup.cfg Update python-satellitetle library 2022-07-08 16:38:17 +03:00
setup.py Override install requirements when building with Read the Docs 2020-12-28 21:34:30 +02:00
tox.ini Revert "Workaround for fixing pipeline errors" 2022-04-28 13:08:40 +03:00
versioneer.py Bump 'versioneer' version 2022-07-15 14:42:53 +03:00

README.md

SatNOGS DB Fork

This lesser fork is for exploring the SatNOGS DB.

Install Dependencies

Using Debian Stable (Bullseye/11).

sudo apt install git libmariadb-dev mariadb-server npm python3-pip sqlite3 virtualenvwrapper

Repo setup

I setup my git repo thusly.

git clone git@spacecruft.org:spacecruft/satnogs-db.git
cd satnogs-db
git remote add upstream https://gitlab.com/librespacefoundation/satnogs/satnogs-db.git
git fetch upstream
git checkout remotes/upstream/master
git branch spacecruft
git checkout spacecruft
git push --set-upstream origin spacecruft
# set to default branch in gitea

Setup

Set up the environment.

To use virtualenvwrapper, you need to add it to the PATH. The easiest way is to just add this like to the end of ~/.bashrc.

source /usr/share/virtualenvwrapper/virtualenvwrapper.sh

Then log out and back in or just re-source the file. This will enable the mkvirtualenv and workon commands.

cd satnogs-db
mkvirtualenv satnogs-db -a .
pip install --upgrade pip
cp env-dist .env

Then edit the .env file to add ALLOWED_HOSTS for remote acccess on LAN. Use IP address of server.

ALLOWED_HOSTS='192.168.1.100'

Front End Dependencies

Install front end. Each command takes one minute or so to run.

npm install
./node_modules/.bin/gulp

Populate Database

Run thusly:

workon satnogs-db  # if you aren't already in the environment
./bin/djangoctl.sh develop .

Set up database in another terminal, when above command is ready and listening on port 8000:

cd satnogs-db
workon satnogs-db
./bin/djangoctl.sh initialize

Access

May need to open firewall on server, TCP/8000.

Use

In web browser go to server IP, port 8000.

http://192.168.1.1:8000/

Log in with super user created above when initializing. It will verify email address. Look in the output of the terminal running the django command above for the URL to validate the email address (assuming no email is actually used).

Upstream

See upstream README-upstream.md.