Code Sponsor provides funding for open source projects through ethical advertising.
Code Sponsor is a proud partner of Gitcoin. Gitcoin pushes Open Source Forward. Learn more at https://gitcoin.co
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/
.
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.
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
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/
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/>.