Code Monkey home page Code Monkey logo

sousedskapomoc / sousedskapomoc_cz Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 5.0 137.94 MB

webová stránka sloužící k organizaci dobrovolníků pro doručování zboží lidem, kteří si na nákup nemohou nebo nesmějí dojít.

Home Page: https://sousedskapomoc.cz

License: GNU General Public License v3.0

PHP 45.47% HTML 0.53% JavaScript 1.31% CSS 6.04% Dockerfile 0.02% Shell 0.06% Latte 46.57%
website covid-19 volunteer-management web application opensource-apps

sousedskapomoc_cz's People

Contributors

antonkovach avatar apelttom avatar cermakpavel avatar hunaczech avatar kajag avatar kuceramartin avatar zwl0219 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sousedskapomoc_cz's Issues

Refactor mailing to service to use RabbitMQ

Each mail meesage is produced into RabbitMQ (queue emails)
Each message consists of serialized Nette\Mail\Message object
Consumer sends it via sendgrid to recipient

If sending fails we place it into log

Introduce AddressEntity

Represent address

AddressEntity

- id - use Doctrine id - you can inspire in RoleEntity
- locationId - int (represent id form here maps)
- country - string
- state - string
- county - (district) - string
- city - string
- postalCode - string

Introduce OrderEntity

Order represent order of customer

OrderEntity

- id - use Doctrine Id (you can inspire in RoleEntity)
- timestampable (use trait Timestampable)
- pickupAddress - string
- deliveryAddress - string
- volunteer - ManyToOne with Volunteer entity
- status - enum (new, assigned, picking, delivering, delivered)
- courier - ManyToOne with volunteer entity

Create API for Voice CALL info storage

TO-DO

  • Create endpoint POST api/v1/calls
  • Create endpoint GET api/v1/calls

VoiceCall Entity

  • id
  • phoneNumber
  • sourceFile
  • stt_content (speech to text)
  • processed
  • posted_order (as DEMAND)
  • createdAt
  • updatedAt

Add Doctrine as ORM

Entitites

TO-DO

  • Create entities
  • Create repositories
  • Introduce same queries / views to get data as in Nette Database functions
  • Create import script that will migrate data from OLD source to new SOURCE

NEEDS

  • Doctrine will use different database
  • Doctrine might use different database engine (PostgreSQL)

Introduce TransportEntity

Add TransportEntity

TransportEntity

- id - use Doctrine Id (you can inspire from RoleEntity)
- type - string
- active - boolean
- sorting - smallint

Clear translation

Right now, we use Kdyby/Translation and all translation are used mixed (templates translation are inserted in some places into forms etc.). We need to make every title/paragraph independet (do not reuse strings). We need this to make it ready for translation to other languages.

Bad title

Bad title - Actually I see as a title this: "SousedskaPomoc.czSP.czpomoz sousedovi"

Introduce DemandEntity

Introduce DemandEntity (it is actually order but not approved -> order from web and our operator will approve it).

DemandEntity

- id 
- Timestampable (there is trait for that in app/Entities/Traits)
- Address - ManyToOne with address
- Items - text
- Phone - string
- name - string
- processed - boolean

Move Forms into component

Right now, all forms are directly in presenters, we need to move it into components. Also we can refactor register Forms -> it could be only one FormFactory -> make it simple

Rewrite forms as component

  • Register courier
  • Register operator
  • Register seamstress
  • Register coordinator
  • editProfile
  • lostPassword
  • changePassword
  • postOrder
  • addNoteToOrder

Introduce Volunteer Entity

Add Entity that represent Volunteer

VolunteerEntity

- id (use Doctrine Id - you can inspire in RoleEntity)
- timestapable (use trait - in app/Entities/Traits)
- role - ManyToMany with RoleEntity
- personPhone (varchar)
- personEmail (varchar)
- personPhone (varchar)
- active
- online
- password varchar(255)
- transport - ManyToOne with Transport entity
- address - ManyToOne with Address entity

Add notification

Add e-mail and (ideally sound notification) when there is a new order (for coordinator and courier).

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.