All Projects → Cuuhomientrung → Cuuhomientrung

Cuuhomientrung / Cuuhomientrung

Site hỗ trợ thông tin cứu hộ người dân miền Trung

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Cuuhomientrung

SheetAble
Self-hosted music sheet organizing software
Stars: ✭ 107 (-48.56%)
Mutual labels:  open-source-project
Module 5 Open Research Software And Open Source
Module 5: Open Research Software and Open Source
Stars: ✭ 62 (-70.19%)
Mutual labels:  open-source-project
Open Source Handbook
⭐️ Open source projects for all skill levels
Stars: ✭ 131 (-37.02%)
Mutual labels:  open-source-project
Android-Apps-Downloader
📱 A tool to download android apps from Google Play Store and Xiaomi App Store (the famous Chinese Store).
Stars: ✭ 16 (-92.31%)
Mutual labels:  open-source-project
Android Open Project
A categorized collection of Android Open Source Projects, More powerful web version:
Stars: ✭ 30,809 (+14712.02%)
Mutual labels:  open-source-project
Covid tracker
A covid statistics app made with Flutter SDK
Stars: ✭ 70 (-66.35%)
Mutual labels:  open-source-project
proyecto26.github.io
The Proyecto26 github homepage.
Stars: ✭ 32 (-84.62%)
Mutual labels:  open-source-project
Hacktoberfest2020 Contributions
A beginner-friendly project to help you in open-source contributions. Made specifically for contributions in HACKTOBERFEST 2020! Hello World Programs and Algorithms! Please leave a star ⭐ to support this project! ✨
Stars: ✭ 196 (-5.77%)
Mutual labels:  open-source-project
Yetiforcecrm
Our team created for you one of the most innovative CRM systems that supports mainly business processes and allows for customization according to your needs. Be ahead of your competition and implement YetiForce!
Stars: ✭ 1,056 (+407.69%)
Mutual labels:  open-source-project
One
OneLang: The One System Programming Language. (release as soon)
Stars: ✭ 120 (-42.31%)
Mutual labels:  open-source-project
liszt
Save snippets of information quickly through the command line
Stars: ✭ 15 (-92.79%)
Mutual labels:  open-source-project
Laravel Open Source Projects
A Web Artisan list of categorized OPEN SOURCE PROJECTS built with Laravel PHP Framework.
Stars: ✭ 676 (+225%)
Mutual labels:  open-source-project
P32929.github.io
Second iteration of my portfolio - created using ReactJS, Material-UI, Overmind, etc
Stars: ✭ 84 (-59.62%)
Mutual labels:  open-source-project
liqpay-magento2
LiqPay integration extension for Magento 2
Stars: ✭ 21 (-89.9%)
Mutual labels:  open-source-project
Material Design Data
关于 Material Design 的一切资料都在这里
Stars: ✭ 1,857 (+792.79%)
Mutual labels:  open-source-project
Find-Me-Issues
A React.js based web-app to find repositories containing 'good first issues' open source contribution. Any kind of contribution and suggestions are highly appreciated!
Stars: ✭ 29 (-86.06%)
Mutual labels:  open-source-project
Android data
Some Android learning materials, hoping to help you learn Android development.
Stars: ✭ 8,461 (+3967.79%)
Mutual labels:  open-source-project
Learnify
👨🏻‍🏫 — Web Edukasi Open-Source yang dibuat oleh SYAUQIZAIDAN KHAIRAN KHALAF. Learnify adalah Web edukasi yang dilengkapi video, materi dan sistem ujian yang tersedia secara gratis. Learnify dibuat ditujukan agar para siswa dan guru dapat terus belajar dan mengajar dimana saja dan kapan saja.
Stars: ✭ 199 (-4.33%)
Mutual labels:  open-source-project
Netcorecms
NetCoreCMS is a modular theme supported Content Management System developed using ASP.Net Core 2.0 MVC. Which is also usable as web application framework. This project is still under development. Please do not use before it's first release.
Stars: ✭ 165 (-20.67%)
Mutual labels:  open-source-project
Hummingbot chinese
hummingbot中文资源
Stars: ✭ 114 (-45.19%)
Mutual labels:  open-source-project

HỆ THỐNG THÔNG TIN CỨU HỘ MIỀN TRUNG

https://cuuhomientrung.info

Website phục vụ công tác cứu hộ, cứu nạn theo mô hình crowdsource (huy động sức lực của cộng đồng để vận hành). Mô hình hoạt động theo nguyên tắc:

  • Những người ở vùng an toàn tham gia làm Tình nguyện viên thông tin (Tự thêm tên & SĐT của mình vào Danh sách Tình nguyện viên)
  • Các tình nguyện viên thu thập dữ liệu kêu cứu của người dân, gọi điện xác minh và cập nhật kết quả vào Danh sách Hộ dân cần ứng cứu
  • Các tình nguyện viên thu thập dữ liệu từ các đơn vị cứu hộ, gọi điện xác minh và cập nhật kết quả vào Danh sách Đơn vị cứu hộ

Bằng việc duy trì một nguồn thông tin đầy đủ, được cập nhật liên tục, các Tình nguyện viên giúp việc điều phối hoạt động cứu hộ, cứu nạn hiệu quả hơn. Tránh tình trạng:

  • Hộ gia đình đã được ứng cứu, nhưng thông tin vẫn tiếp tục được chia sẻ trên MXH, cản trở hoạt động ứng cứu các gia đình cần kíp hơn
  • Người dân cần ứng cứu không nắm được thông tin và tình trạng của đơn vị cứu hộ để gọi xin ứng cứu
  • Các đơn vị cứu hộ không nắm được mức độ và số lượng điểm cần ứng cứu tại từng khu vực địa lý (tỉnh, huyện, xã, thôn) để điều phối nguồn lực hiệu quả

LÀM THẾ NÀO ĐỂ ĐÓNG GÓP CHO DỰ ÁN

Nếu bạn là Tình nguyện viên, bạn có thể:

  1. Vào trang https://cuuhomientrung.info
  2. Tự thêm contact của bạn vào Danh sách Tình nguyện viên
  3. Đăng tải / Nhận xác minh các thông tin kêu cứu mà chưa có Tình nguyện viên nhận cập nhật
  4. Đăng tải / Nhận xác minh các thông tin về các đội cứu hộ mà chưa có Tình nguyện viên nhận cập nhật
  5. Bổ sung các dịch vụ khác mà bạn có thể hỗ trợ vào mục "Nguồn trợ giúp khác" để người gặp nạn có thể tìm đến. Một số dịch vụ hữu ích trong thiên tai là:
  • Tìm kiếm và tư vấn đội cứu hộ gần nhất mà người dân nên gọi đến
  • Nạp tiền điện thoại cho các gia đình gặp nạn để duy trì liên lạc
  • Chủ động cảnh báo thông tin về tình hình lũ lụt tới các điểm cần cứu hộ

Nếu bạn là Đơn vị cứu hộ, bạn có thể

  1. Vào trang https://cuuhomientrung.info
  2. Tự thêm Đơn vị cứu hộ của bạn vào Danh sách Cứu hộ
  3. Chủ động update thông tin của đơn vị lên trang để giúp các Tình nguyện viên khác điều phối hoạt động cứu hộ tốt hơn
  4. Xem thống kê số lượng gia đình cần ứng cứu & số đơn vị cứu hộ tại cùng khu vực để chủ động điều phối nguồn lực tới các khu vực cần thiết hơn

Nếu bạn là lập trình viên

  1. Tạo pull request để bổ sung tính năng cho dự án
  2. Nếu là senior, bạn có thể ứng cử làm manager cho dự án này để tiếp tục hoàn thiện dự án phục vụ cộng đồng

CÙNG CHUNG TAY VÌ KHÚC RUỘT MIỀN TRUNG !!!

HƯỚNG DẪN CÀI ĐẶT

Cài đặt nhanh

Hướng dẫn cài đặt bằng Docker

Hướng dẫn cài đặt không dùng Docker

Cài đặt tiêu chuẩn

  1. Cài đặt các thư viện cần thiết (cần cài Python3.6 trở lên và Pip3 trước)
pip3 install -r requirements/development.txt

Cài các thư viện để chạy test environment nếu cần thiết (thêm dummy data, chạy unittests)

pip3 install -r requirements/testing.txt

2. Thay đổi cấu hình database từ postgresql sang sqlite (để chạy được ở local)

- trong file project/app/settings.py, comment out config postgresql và thay bằng phần config sqlite

  1. Cài đặt PostgreSQL và tạo database shema
  • PostgreSQL
    • Debian/Ubuntu
      • Update mirror
      sudo apt update
      
      • Cài đặt postgresql
      sudo apt install postgresql
      
      • Cài đặt postgresql-contrib (để sử dụng UnaccentExtension) nếu chưa được cài sẵn cùng postgresql ở trên
      sudo apt install postgresql-contrib
      
    • Centos
      • Cài đặt postgresql
      sudo yum install postgresql
      
      • Cài đặt postgresql-contrib
      sudo yum install postgresql*contrib
      
    • Docker image: đã được cài sẵn postgres-contrib
    • Các hệ điều hành khác vui lòng cài đặt postgresqlpostgresql-contrib theo hướng dẫn chính thức tại đây
  • chạy script sau để tạo lại schema
bash run_migrate.sh
  1. Tạo tài khoản admin
bash run_create_admin.sh
  1. Mặc định đăng nhập site bằng tài khoản admin
  • trong file project/app/middleware.py, thay đổi username thành username của admin đã tạo ở bước 3

Môi trường dev

Chạy webserver bằng lệnh sau:

bash run_server.sh

Mặc định site sẽ chạy ở localhost:8087

  1. Hướng dẫn frontend development
  • Phần admin thì dùng css, và js thuần của thư viện. Bỏ qua phần này.

  • Phần home page mới sử sử dụng webpack-bundle của django để load file.

  1. Hướng dẫn chuẩn bị môi trường dev
  • Bước 1: Chạy lệnh sau để dev trên local npm run watch

  • Bước 2: Chạy lệnh sau để render ra các static file của thư viện (thường thì chỉ dùng cho admin page) ./project/manage.py collectstatic --no-input

  • Bước 3: Tiến hành code và dev trong thư mục project/app/static/webpack_sources Các sources code của thư mục này sẽ được build tại thư mục project/static/webpack_bundles

  • Lưu ý: Tất cả các file static (js,css,svg,image) khi muốn nhúng vào html cần follow cú pháp sau: File này được tự động tìm trong project/app/static

"{% static '/path/to/some_file' %}?v={{ REVISION }}"

Các file scss và js hiện tại import tại file loader. Css sẽ tự render ra và append vào header của html

Tích hợp API

Restful api doc tại đây

Sau khi bạn được cấp api_token, các request sẽ follow theo doc như bình thường. Ngoài ra bạn phải thêm vào header tham số sau

Authorization: Token [api_token]

Ví dụ

curl -X GET [hostname]/api/cuuho/ -H 'Authorization: Token [api_token]'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].