Giter Site home page Giter Site logo

adraxyz / help-nonprofit Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 12.95 MB

Human Evolution for Landscape Protection (HELP) WebSite

Home Page: https://help-nonprofit.org

License: GNU General Public License v3.0

Python 29.84% JavaScript 4.51% CSS 3.19% Vue 60.08% Shell 0.25% SCSS 2.13%

help-nonprofit's Introduction

help-nonprofit

Human Evolution for Landscape Protection (HELP) WebSite

Development

git clone https://github.com/adraxyz/help-nonprofit.git

Requirements

Python >= 3.8
Pip >= 20.1.1
python3-venv >= 3.8.6
Postgres >= 12.5
npm >= 6.14.8

Database setup

sudo -u postgres psql
CREATE DATABASE <your_database_name>;
CREATE USER <your_database_user> WITH PASSWORD '<your_database_password>';
ALTER ROLE <your_database_user> SET client_encoding TO 'utf8';
ALTER ROLE <your_database_user> SET default_transaction_isolation TO 'read committed';
ALTER ROLE <your_database_user> SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE <your_database_name> TO <your_user>;

Backend setup

Virtual environment

python3 -m venv help_nonprofit
. help_nonprofit/bin/activate

Requirements

pip install -r help-nonprofit/backend/requirements.txt

Environment variables

help-nonprofit/backend/backend/.env

Migrations

python3 help-nonprofit/backend/manage.py makemigrations
python3 help-nonprofit/backend/manage.py migrate

Backend static files

python3 help-nonprofit/backend/manage.py collectstatic

Run backend server

python3 manage.py runserver

Visit localhost:8000 for APIs calls or the Django admin

Frontend setup

Packages installation

cd help-nonprofit/frontend
npm install

Environments variables

help-nonprofit/frontend/.env

Run frontend server

npm run dev

Visit localhost:3000

help-nonprofit's People

Contributors

adraxyz avatar dependabot[bot] avatar

Watchers

 avatar

Forkers

gioscarda

help-nonprofit's Issues

Error page

We should design a nice error page which exposes a link to our github issues page.

@cchiara could you provide a graphic that means "we are sorry"?

Move send_mail to async

We should avoid the site freezing for long time. If the "send_mail" method takes too much time to be executed we should move it to an async method (django signal?)

Avoid big images in gallery

issue_gallery

The project details page loads the gallery images a bit slowly, mostly when the server seems busy.
A quick solutions is to expose only small thumbnail in the gallery and call the true image only when clicked for full screen view.

Show the last post for each social

Add a section with the last post on each social. Each post should be represented as a button-styled square with the post image. Below the square write the title "last <social_name> post" or something similar.

@cchiara we should consider to put this section inside/outside the footer.

Projects map [ch87]

[ch87]
We want to have a projects map in the projects page in which the visitor can:

  • see all the projects location through a marker
  • see a popup with a thumbnail and a short description of the project once the project marker clicked
  • filter projects by location:
    • the map bounding-box
    • by region, country, city, etc
  • filter projects by attribute:
    • project category
    • project status (defined, fund-raising, in progress, realized, etc)
  • filter projects with a combination of filters
  • go to the project details page by clicking on the popup image/text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.