1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Jeff Moe 5a7751ab30
Install sqlite3 too
2 months ago
bin Fix workdir flag for celery with 5.0 change 2 years ago
contrib Fix initial installation process 9 months ago
db Update LatestTleSet entries after removing TLE source from distributable ones 3 months ago
docs Bump 'versioneer' version 7 months ago
satnogs-db-api-client minor updates to satnogs-db-api-client 2 years ago
.coveragerc Add some basic tests 6 years ago
.editorconfig Initial commit 8 years ago
.eslintignore Add dnd-helper for Do-Not-Track 6 years ago
.eslintrc.json Switch from jshint to eslint 6 years ago
.gitattributes Create an initial 'satnogs-db' package with no requirements specified 4 years ago
.gitignore New SatNOGS DB user interface 3 years ago
.gitlab-ci.yml Update to Django 4 10 months ago
.pylintrc Narrow ignored members to zmq library 2 years ago
.readthedocs.yml docs: Add requirements file 2 years ago
.stylelintrc Add stylelint 6 years ago
.yapfignore Fix YAPF dict formatting 2 years ago
CONTRIBUTING.md Update contribution and developing guides 4 years ago
Dockerfile Update to Django 4 10 months ago
LICENSE Fix license file to match original text version 3 years ago
MANIFEST.in Create an initial 'satnogs-db' package with no requirements specified 4 years ago
README-upstream.md mv upstream README 2 months ago
README.md Install sqlite3 too 2 months ago
conftest.py Improve testing and handling of telemetry upload API 2 years ago
docker-compose.cache.yml Utilize Docker cache to speed up building 4 years ago
docker-compose.yml docker-compose: Bump 'mariadb' image version 2 months ago
env-dist Add sentry-sdk for logging 4 years ago
gulpfile.js Revert "Remove eslint.failAfterError()" 3 years ago
manage.py Remove python3 migration remnants 3 years ago
package-lock.json Fix modal submit button functionality 2 years ago
package.json package and dependency updates 2 years ago
pyproject.toml pyproject.toml: Require 'setuptools' versions supporting PEP 517 9 months ago
requirements-dev.txt Update python libraries 7 months ago
requirements.txt Update python-satellitetle library 7 months ago
setup.cfg Update python-satellitetle library 7 months ago
setup.py Override install requirements when building with Read the Docs 2 years ago
tox.ini Revert "Workaround for fixing pipeline errors" 9 months ago
versioneer.py Bump 'versioneer' version 7 months ago

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.