Code Sponsor v2.0
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
assets
bin
code_sponsor
home
static
templates
track
.babelrc
.eslintignore
.eslintrc.js
.gitignore
.pre-commit-config.yaml
.prettierignore
.prettierrc
.travis.yml
CONTRIBUTING.md
Dockerfile
LICENSE
Makefile
Pipfile
Pipfile.lock
Procfile
README.md
docker-compose.yml
entrypoint.sh
manage.py
newrelic.ini
package-lock.json
package.json
postcss.config.js
runtime.txt
setup.cfg
webpack.config.js

README.md

Travis Waffle.io - Columns and their card count

Code Sponsor

Code Sponsor provides funding for open source projects through ethical advertising.

Partnership

Code Sponsor is a proud partner of Gitcoin. Gitcoin pushes Open Source Forward. Learn more at https://gitcoin.co

Running Locally

With Docker

git clone https://github.com/codesponsor/codesponsor.git
cd codesponsor
cp code_sponsor/.env-sample code_sponsor/.env
docker-compose up -d

Navigate to http://0.0.0.0:8000/.

Without Docker

git clone https://github.com/codesponsor/codesponsor.git
cd codesponsor
cp code_sponsor/.env-sample code_sponsor/.env

You will need to edit the code_sponsor/.env file with your local environment settings.

Setup Database

PostgreSQL is the database used by this application. Here are some instructions for installing PostgreSQL on various operating systems.

OSX

Windows

Ubuntu

Once you have Postgres installed and running on your system, enter into a Postgres session.

psql

Create the database and a new privileged user.

CREATE DATABASE codesponsor_development;
CREATE USER codesponsor_user WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE codesponsor_development TO codesponsor_user;

Exit Postgres session

\q

Update the code_sponsor/.env file with the DATABASE ENV:

DATABASE_URL=psql://codesponsor_user:password@127.0.0.1:5432/codesponsor_development

Startup server

pipenv install
pipenv run python manage.py migrate
pipenv run python manage.py createcachetable
pipenv run python manage.py runserver 0.0.0.0:8000

Navigate to http://localhost:8000/

Deploying to Heroku

Ensure you add the buildpacks:

$ heroku buildpacks:add --index 1 heroku/nodejs
$ heroku buildpacks:add --index 2 heroku/python

Deploy to Heroku

$ heroku create
$ git push heroku master
$ heroku run python manage.py migrate
$ heroku open

Legal

Copyright (C) 2018 Code Sponsor

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

License

GNU AFFERO GENERAL PUBLIC LICENSE