Skip to content
Suministros Puerto Rico - Entérate, Ayuda, Informa
Python CSS HTML Shell Dockerfile
Branch: master
Clone or download
froi Create stale.yml (#151)
Initial commit for Stale action.
Latest commit 9fc40b3 Feb 18, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Create stale.yml (#151) Feb 18, 2020
bin Prevent exit on pg_restore warnings Jan 18, 2020
design Updates design file Jan 19, 2020
docker/postgres Add docker + docker-compose setup for dev Jan 14, 2020
static Make municipalities collapsible on mobile (#148) Feb 10, 2020
suministrospr Make municipalities collapsible on mobile (#148) Feb 10, 2020
templates tailwindcss Migration (#118) Jan 26, 2020
.flake8 Optimize group by query in Suministros list view (#88) Jan 18, 2020
.gitignore Add docker + docker-compose setup for dev Jan 14, 2020
.isort.cfg Remove migrations and django-taggit (#116) Jan 18, 2020
.pre-commit-config.yaml Optimize group by query in Suministros list view (#88) Jan 18, 2020
CONTRIBUTING.md Resolves #120 contributing file (#126) Jan 20, 2020
Dockerfile Add linting and pre-commit setup (#47) Jan 15, 2020
LICENSE Create LICENSE (#149) Feb 10, 2020
Pipfile Remove migrations and django-taggit (#116) Jan 18, 2020
Pipfile.lock Bump django from 2.2.9 to 2.2.10 (#150) Feb 12, 2020
Procfile Initial commit Jan 13, 2020
README.md Optimize group by query in Suministros list view (#88) Jan 18, 2020
app.json Add setup for heroku container stack (#133) Jan 20, 2020
docker-compose.yml Allow selecting existing and creating tags in form (#107) Jan 17, 2020
example.env Add example.env back Jan 14, 2020
heroku.yml Add setup for heroku container stack (#133) Jan 20, 2020
manage.py Add linting and pre-commit setup (#47) Jan 15, 2020
pyproject.toml Optimize group by query in Suministros list view (#88) Jan 18, 2020
pytest.ini Add test harness (#65) Jan 15, 2020
runtime.txt Add linting and pre-commit setup (#47) Jan 15, 2020

README.md

Suministros Puerto Rico

https://suministrospr.com

Development

# Install pipenv (https://pipenv.kennethreitz.org/en/latest/install/#installing-pipenv)
$ pip install --user pipenv

# Install project dependencies
$ pipenv install --dev

# Install pre-commit hooks
$ pipenv run pre-commit install

# Copy example environment variables to proper file
$ cp example.env .env

# Run Django database migrations
$ pipenv run python manage.py migrate

# Run local server
$ pipenv run python manage.py runserver_plus

Docker

$ docker-compose up --build

Importing data

  1. Unarchive data extract to ./data/scraped/*.json

  2. Run the import_data command:

$ docker-compose exec web python manage.py import_data ./data/scraped

Deployment

git push heroku master

Clearing cache

heroku run python manage.py clear_cache
You can’t perform that action at this time.