Skip to content

proofoftom/codesponsor

 
 

Repository files navigation

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/

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

About

Code Sponsor v2.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.7%
  • CSS 30.1%
  • Python 6.7%
  • HTML 3.2%
  • Other 0.3%