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

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 git@github.com: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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •