Ⓜ️
Matar
  • ✍️About Matar
  • 📁Concept
    • 📄Understanding Matar
  • 📁Matar For Communities
    • 📄Hosting on Matar
    • 📄Trial Pilot
    • 📄Community Management
  • 📁🚀 Get Started
    • 📄Language Selection
    • 📄Organization Onboarding
    • 📄Signing Up
  • 📁Matar Features
    • 📄Browsing the App
    • 📄View Questions
    • 📄Changing Subjects
    • 📄Answer Questions
    • 📄Ask a Question
    • 📄Share a Question
    • 📄Like an Answer
    • 📄See Liked Answers
    • 📄Dislike an Answer
    • 📄See Recorded Questions
    • 📄See Recorded Answers
    • 📄Troubleshooting
    • 📄Version
    • 📄FAQ
  • 📁Developer Reference
    • 🗄️Architecture
      • 📄Overview
      • 📄Backend
      • 📄Frontend
      • 📄API Layer
    • 📜Guides
      • 📄Add/delete posts
    • 🛠️API
      • 📄API Flow
      • 📁User Login
        • 📄Login
        • 📄Submit OTP
        • 📄Get Current User
        • 📄Edit User
        • 📄Logout
      • 📄Organization Selection
      • 📄Language and Categories
      • 📄Activity Types
      • 📁Posts
        • 📄Post a New Question
        • 📄Delete a Post
        • 📄Post Activity Type
        • 📄Post Information
        • 📄Post GPT Processing
    • 📶DB Tables and Structure
      • 📄Matar DB tables
      • 📄Code Structure
    • 💻Backend Code
      • 📄Response on a Post from AI
      • 📄Post Sorting
      • 📄User Registration
      • 📄Org Based Code
    • 💻Frontend Code
      • 📄Overview
      • 📄Setting up Project
      • 📄Project Structure
      • 📄Code Directories
        • 📄Broadcast Directory
        • 📄Core Directory
        • 📄Data Directory
        • 📄di Directory
        • 📄domain/repository Directory
        • 📄model Directory
        • 📄retrofit Directory
        • 📄ui Directory
          • 📄dialog
          • 📄features
          • 📄service
  • 🤝Support
Powered by GitBook
On this page
  1. Developer Reference
  2. DB Tables and Structure

Code Structure

PreviousMatar DB tablesNextBackend Code

Last updated 1 year ago

Matar Repo :


Here is a code structure :

--.vs code(directory) 
-- apis(directory)
  --web(directory)
    - _init_.py
-- migrations(directory)
  --versions(directory)
    - alembic.ini
    - env.py
    - script.py.mako
-- models(directory)
    - _init_.py
    - base.py
    - db.py
    - helper_tables.py
    - user.py
-- scripts/aws_cli(directory)
    -  logsUpload.py
-- utils(directory)
    - authentication.py(Define Authentication Functions)
    - common_functions.py
    - constants.py
    - general_config.py
    - push_notification.py
    - sms.py
    - template_data.py
--. docker.ignore(file)(Ignore files and folders when building a Docker Image)
-- .env.example(file)
-- .gitignore(file)
-- Dockerfile(file)
-- Procfile(file)(Procfile specifies commands to execute upon startup)
-- aud1.m4a(file)(Sample audio file for app testing.)
-- app.py(file) (Initialize and create databases)
-- app_config.py(file)(Initialize Celery server for message processing) 
-- app_factory.py(file)
-- db.py(file)(import SQLAlchemy library- datsbase toolkit for python)
-- docker-compose.yml(environment build variable for redis database)
-- entry.sh (///)
-- environment.yml(all python dependencies that has to be used)
-- extensions.py(Using Redis as a blacklist store for access tokens)
-- flask_celery.py(Handle asynchronous Tasks with Flask and Celery) 
-- generic_scripts.py -->(Contains data parsing scripts)           
-- jwt_callbacks.py (Contains Callback functions for custom jwt responses) 
-- requirements.txt (Configuration file for python packages)
-- run.py()
📁
📶
📄
Link