Code Sponsor provides funding for open source projects through ethical advertising.
git clone https://github.com/codesponsor/codesponsor.git cd codesponsor cp code_sponsor/.env-sample code_sponsor/.env docker-compose up -d
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.
PostgreSQL is the database used by this application. Here are some instructions for installing PostgreSQL on various operating systems.
Once you have Postgres installed and running on your system, enter into a Postgres session.
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
Update the code_sponsor/.env file with the DATABASE ENV:
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
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/>.