Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
/ sourcedive Public archive

Internal source database using modified version of https://github.com/greglinch/sourcelist UPDATE: This repo now lives here https://gitlab.com/industrydive/sourcedive

License

Notifications You must be signed in to change notification settings

industrydive/sourcedive

Folders and files

NameName
Last commit message
Last commit date
May 29, 2020
Dec 17, 2019
Apr 20, 2020
May 15, 2020
Jun 9, 2020
May 15, 2020
May 27, 2020
May 20, 2019
Aug 28, 2019
May 20, 2019
May 14, 2020
Jun 6, 2020

Repository files navigation

This is an open-source tool for creating a database of sources.

Developer Setup

The following instructions are intended for a developer to set this up locally

Preparation

Make sure you have docker and docker-compose installed

Setup the app

Clone the repo (or your fork)

git clone [email protected]:industrydive/sourcedive.git

Private settings

Run the following

cp settings_private.dev.py settings_private.py

Update all the UPDATE vars as needed.

Build & start the image

docker-compose build
docker-compose up

Run the migrations

docker exec sourcedive_app_1 python manage.py migrate

Create a superuser

docker exec -it sourcedive_app_1 sh
python manage.py createsuperuser # follow the command prompts

Login into the app

Go to http://127.0.0.1:8080/admin/login/?next=/admin/
Select 'Enter credentials' and use your superuser from the previous step

Set up GitHub

Generate ssh key

ssh-keygen -t rsa -b 4096 -C "youremail"

Deploy steps

In the virtualenv:

  1. git checkout master

  2. git pull origin master

  3. pip3 install -r requirements.txt

  4. python3 manage.py migrate

  5. sudo systemctl restart uwsgi