1
0
Fork 0
satnogs-db/README.md

100 lines
3.1 KiB
Markdown
Raw Permalink Normal View History

2020-01-12 12:36:49 -07:00
# Fork
This is a fork of the SatNOGS DB. It is available here:
* http://db.satnogs.spacecruft.org
2020-01-12 13:15:06 -07:00
# Install SatNOGS-DB
Set up for Debian Buster.
## Install docs
* https://docs.satnogs.org/projects/satnogs-db/en/stable/installation-virtualenv.html
## Install dependencies
```
apt update
apt install -t buster-backports apache2
2020-01-12 13:48:21 -07:00
apt install python3 virtualenvwrapper python3-pip git python3-certbot-apache npm libmariadbclient-dev
2020-01-12 13:15:06 -07:00
# Set up SSL
certbot
```
## Install Virtual Environment
Set up `virtualenvs` (like this? Not in docs).
```
mkdir $HOME/.virtualenvs
echo "export WORKON_HOME=$HOME/.virtualenvs" >> $HOME/.bashrc
echo "source /usr/share/virtualenvwrapper/virtualenvwrapper.sh" >> $HOME/.bashrc
source ~/.bashrc
# Make sure it looks ok:
workon
```
## Install satnogs-db from git
```
git clone https://spacecruft.org/spacecruft/satnogs-db.git
cd satnogs-db
2020-01-12 13:48:21 -07:00
mkvirtualenv --python=/usr/bin/python3 satnogs-db -a .
2020-01-12 13:15:06 -07:00
cp env-dist .env
vim .env
npm install
./node_modules/.bin/gulp
```
2020-01-12 12:36:49 -07:00
2020-01-12 13:27:47 -07:00
## Run satnogs-db
```
cd satnogs-db # if you aren't there already
workon satnogs-db
./bin/djangoctl.sh develop .
```
## Populate satnogs-db
2020-01-12 15:07:00 -07:00
While `./bin/djangoctl.sh develop .` is running above, in another terminal
run:
2020-01-12 13:27:47 -07:00
```
./bin/djangoctl.sh initialize
```
2020-01-12 14:03:20 -07:00
This will ask you a few questions, including asking for username/password.
Then create an `ssh` tunnel to the server, and log in here:
* http://localhost:8000
It will then say it is mailing a link to you to verify account, but
email isn't set up yet. So Go back to where you ran
`./bin/djangoctl.sh initialize` and you'll see in the log the link
to go to to verify your email address. Go there, then you can log in
as the superuser you created above.
2020-01-12 13:27:47 -07:00
# Upstream
2020-01-12 12:36:49 -07:00
See below for upstream README.
2015-04-22 05:05:30 -06:00
# SatNOGS DB
SatNOGS DB is a transmitter suggestions and crowd-sourcing app.
2015-04-22 05:05:30 -06:00
## Contribute
2015-04-22 05:05:30 -06:00
Check out the [documentation](https://docs.satnogs.org/projects/satnogs-db/en/stable/) on how to setup a local development instance.
2015-04-22 05:05:30 -06:00
2017-08-07 11:35:36 -06:00
The main repository lives on [Gitlab](https://gitlab.com/librespacefoundation/satnogs/satnogs-db).
2016-09-22 09:18:42 -06:00
## Join
2016-02-03 13:14:07 -07:00
2017-11-02 05:58:50 -06:00
[![matrix](https://img.shields.io/badge/Matrix-%23satnogs:matrix.org-blue.svg)](https://riot.im/app/#/room/#satnogs:matrix.org)
[![irc](https://img.shields.io/badge/IRC-%23satnogs%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=satnogs)
2017-11-02 05:58:50 -06:00
[![forum](https://img.shields.io/badge/forum-discourse-blue.svg)](https://community.libre.space/c/satnogs)
2016-02-03 13:14:07 -07:00
2016-09-22 09:18:42 -06:00
## Current Development
2016-02-03 13:14:07 -07:00
2017-08-07 11:35:36 -06:00
[![kanban](https://img.shields.io/badge/kanban-board-lightgray.svg)](https://gitlab.com/librespacefoundation/satnogs/satnogs-db/boards/345706)
[![build](https://gitlab.com/librespacefoundation/satnogs/satnogs-db/badges/master/build.svg)](https://gitlab.com/librespacefoundation/satnogs/satnogs-db/commits/master)
[![coverage](https://gitlab.com/librespacefoundation/satnogs/satnogs-db/badges/master/coverage.svg)](https://gitlab.com/librespacefoundation/satnogs/satnogs-db/commits/master)
2016-02-03 13:14:07 -07:00
2015-04-22 05:05:30 -06:00
## License
[![license](https://img.shields.io/badge/license-AGPL%203.0-6672D8.svg)](LICENSE)
[![Libre Space Foundation](https://img.shields.io/badge/%C2%A9%202014--2019-Libre%20Space%20Foundation-6672D8.svg)](https://librespacefoundation.org/)