Skip to content
/ atay Public

The project source code for Ağ Tabanlı Afet Yönetim Sistemi: ATAY.

License

Notifications You must be signed in to change notification settings

yigitoo/atay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATAY: Ağ Tabanlı Afet Yönetim Sistemi

!!! documentation process are not completed and the project is in-development !!!

Definitions:

  • ATAY: Ağ Tabanlı Afet Yönetim(i)
  • NBDM: Network Based Disaster Management (ATAY in English)
  • Geolocation API
  • API key: An Application Programming Interface authentication key for using the Geolocation Services.


Please run the following command before using scripts.

$ chmod u+x ./scripts/*.sh

And please create .env.local file like this: (in the server folder)

#DB_CREDENTIALS
HOST=localhost
PORT=3306
USERNAME=root
PASSWORD=yourpassword
DRIVER=pymysql
DIALECT=mysql
DB_NAME=atay
USERS_TABLE=users
STRUCTURES_TABLE=structures
CARD_DATASETS_TABLE=card_datasets
CARD_STATUSES_TABLE=card_statuses
SECRET_KEY=e58c587c-7c6d-415a-805b-fbabbc264308 # you can create it with uuid.uuid4()

Folder structures


├── __init__.py
├── ai
│  ├── __init__.py
│  ├── data_fetcher.py
│  └── model.py
├── assets
│  └── atay_db_diagram.png
├── atay-embedded
│  ├── api_conn_test.py
│  ├── atay
│  │  ├── atay.ino
│  │  ├── data
│  │  │  └── token.txt
│  │  └── libs.txt
│  ├── atay-host-url
│  │  ├── index.js
│  │  ├── package.json
│  │  ├── pnpm-lock.yaml
│  │  ├── README.txt
│  │  └── vercel.json
│  ├── requirements.txt
│  └── token.txt
├── scripts
│  ├── __init__.py
│  ├── curl_request_generator.py
│  ├── make_dotenv.py
│  ├── schema.sql
│  ├── setup_db.bat
│  └── setup_db.sh
├── server
│  ├── __init__.py
│  ├── __pycache__
│  │  ├── database.cpython-311.pyc
│  │  ├── mylogger.cpython-311.pyc
│  │  ├── responses.cpython-311.pyc
│  │  ├── server.cpython-311.pyc
│  │  └── utils.cpython-311.pyc
│  ├── config
│  │  ├── 1-stderr-file.json
│  │  ├── 1-stderr-file.yaml
│  │  ├── 2-stderr-json-file.json
│  │  └── 2-stderr-json-file.yaml
│  ├── database.py
│  ├── logs
│  │  └── atay.log
│  ├── make_user.py
│  ├── Makefile
│  ├── mylogger.py
│  ├── requirements.txt
│  ├── responses.py
│  ├── server.py
│  ├── static
│  │  ├── ATAY.png
│  │  ├── favicon.ico
│  │  └── robots.txt
│  └── utils.py
├── LICENSE.md
├── README.md
└── TODO.md

To see a detailed example DB Diagram of ATAY:


ATAY Database Diagram

P.S: If you want to see exact database variable names. see the server/database.py