Skip to content

TecExpo/TecX.AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TecX.AI

https://www.tecx.ai

TecX AI Website Repository

This repository contains a fully-featured AI-powered Web3 website with modern authentication, AI models, smart contracts, and cloud deployment.

Features

Frontend: React.js / Next.js with Tailwind CSS

Backend: FastAPI (Python) & Express.js (Node.js)

Authentication: SAML, OAuth2, JWT

Web3 Integration: Solidity smart contracts, The Graph, Oracles

AI Models: Hugging Face, TensorFlow-Serving, PyTorch

Messaging & Streaming: Kafka with Zookeeper

Database: PostgreSQL, MongoDB, Redis, IPFS

DevOps & Deployment: Docker, Kubernetes, Terraform, CI/CD with GitHub Actions

Monitoring & Logging: Prometheus, Grafana, Loki, ELK Stack

πŸ“‚ Project Structure

TecX.AI/
│── frontend/              # React.js / Next.js frontend
β”‚   β”œβ”€β”€ public/           # Static assets (e.g., images, favicon, static HTML files)
β”‚   β”‚   β”œβ”€β”€ index.html    # Static fallback homepage (for non-Next.js builds)
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/   # Reusable UI components
β”‚   β”‚   β”‚   β”œβ”€β”€ Navbar.js
β”‚   β”‚   β”‚   β”œβ”€β”€ Footer.js
β”‚   β”‚   β”‚   β”œβ”€β”€ Button.js
β”‚   β”‚   β”œβ”€β”€ pages/        # Next.js pages
β”‚   β”‚   β”‚   β”œβ”€β”€ index.js  # Homepage entry point for Next.js
β”‚   β”‚   β”‚   β”œβ”€β”€ login.js  # Login page
β”‚   β”‚   β”‚   β”œβ”€β”€ dashboard.js  # User dashboard
β”‚   β”‚   β”œβ”€β”€ styles/       # Tailwind CSS styles
β”‚   β”‚   β”‚   β”œβ”€β”€ globals.css
β”‚   β”‚   β”‚   β”œβ”€β”€ theme.css
β”‚   β”‚   β”œβ”€β”€ utils/        # Helper functions
β”‚   β”‚   β”‚   β”œβ”€β”€ api.js    # API calls
β”‚   β”‚   β”‚   β”œβ”€β”€ format.js # Formatting utilities
β”‚   β”‚   β”œβ”€β”€ web3/         # Web3 integrations (MetaMask, WalletConnect, The Graph, Oracles)
β”‚   β”‚   β”‚   β”œβ”€β”€ provider.js
β”‚   β”‚   β”‚   β”œβ”€β”€ connectWallet.js
β”‚   β”‚   β”œβ”€β”€ hooks/        # Custom React hooks
β”‚   β”‚   β”‚   β”œβ”€β”€ useAuth.js
β”‚   β”‚   β”‚   β”œβ”€β”€ useWeb3.js
│── backend/              # API layer
β”‚   β”œβ”€β”€ fastapi/          # FastAPI microservices
β”‚   β”‚   β”œβ”€β”€ main.py
β”‚   β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”‚   β”œβ”€β”€ user.py
β”‚   β”‚   β”‚   β”œβ”€β”€ auth.py
β”‚   β”‚   β”œβ”€β”€ models.py
β”‚   β”œβ”€β”€ express/          # Express.js microservices
β”‚   β”‚   β”œβ”€β”€ index.js
β”‚   β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”‚   β”œβ”€β”€ user.js
β”‚   β”‚   β”‚   β”œβ”€β”€ auth.js
β”‚   β”œβ”€β”€ authentication/   # SAML, OAuth2, JWT authentication
β”‚   β”‚   β”œβ”€β”€ auth.js
β”‚   β”‚   β”œβ”€β”€ samlConfig.js
β”‚   β”œβ”€β”€ websocket/        # Real-time WebSocket services
β”‚   β”‚   β”œβ”€β”€ server.js
β”‚   β”œβ”€β”€ ai_models/        # AI Model Deployment (Hugging Face, TF-Serving, PyTorch, NLP, Computer Vision)
β”‚   β”‚   β”œβ”€β”€ model.py
β”‚   β”‚   β”œβ”€β”€ inference.py
β”‚   β”œβ”€β”€ logging/          # Centralized logging (ELK Stack, Loki, Fluentd)
│── web3/                 # Smart contracts and blockchain logic
β”‚   β”œβ”€β”€ contracts/        # Solidity smart contracts
β”‚   β”‚   β”œβ”€β”€ Contract.sol
β”‚   β”œβ”€β”€ scripts/          # Deployment and interaction scripts
β”‚   β”‚   β”œβ”€β”€ deploy.js
β”‚   β”œβ”€β”€ test/             # Smart contract testing (Slither, Mythril)
β”‚   β”‚   β”œβ”€β”€ contract.test.js
β”‚   β”œβ”€β”€ security/         # Security audits and vulnerability scanning
β”‚   β”œβ”€β”€ subgraphs/        # The Graph integration for indexing
│── database/             # Database and storage
β”‚   β”œβ”€β”€ sql/              # PostgreSQL schemas
β”‚   β”‚   β”œβ”€β”€ schema.sql
β”‚   β”œβ”€β”€ nosql/            # MongoDB models
β”‚   β”‚   β”œβ”€β”€ userModel.js
β”‚   β”œβ”€β”€ redis/            # Redis caching
β”‚   β”‚   β”œβ”€β”€ cache.js
β”‚   β”œβ”€β”€ ipfs/             # IPFS & Arweave storage
│── devops/               # Deployment and automation
β”‚   β”œβ”€β”€ docker/           # Dockerfiles for containerization
β”‚   β”‚   β”œβ”€β”€ Dockerfile
β”‚   β”œβ”€β”€ kubernetes/       # K8s configurations for container orchestration
β”‚   β”‚   β”œβ”€β”€ deployment.yaml
β”‚   β”‚   β”œβ”€β”€ service.yaml
β”‚   β”œβ”€β”€ terraform/        # Infrastructure as Code (IaC) using Terraform
β”‚   β”‚   β”œβ”€β”€ main.tf
β”‚   β”œβ”€β”€ ci-cd/            # GitHub Actions, Jenkins pipelines
β”‚   β”‚   β”œβ”€β”€ github-actions.yml
β”‚   β”œβ”€β”€ security/         # Security monitoring and vulnerability scanning
β”‚   β”œβ”€β”€ monitoring/       # Monitoring (Prometheus, Grafana, Loki)
β”‚   β”‚   β”œβ”€β”€ prometheus.yaml
β”‚   β”‚   β”œβ”€β”€ grafana.yaml
β”‚   β”œβ”€β”€ kafka-zookeeper/  # Kafka message broker and Zookeeper coordination service
β”‚   β”‚   β”œβ”€β”€ kafka-config.yaml
β”‚   β”‚   β”œβ”€β”€ producer.py
β”‚   β”‚   β”œβ”€β”€ consumer.py
β”‚   β”œβ”€β”€ load-balancer/    # Nginx, HAProxy for traffic management
β”‚   β”‚   β”œβ”€β”€ nginx.conf
│── ai-engine/            # AI Pipelines and Training
β”‚   β”œβ”€β”€ models/          # Pretrained AI models and training data
β”‚   β”œβ”€β”€ training/        # Scripts for AI model training and fine-tuning
β”‚   β”‚   β”œβ”€β”€ train.py
β”‚   β”œβ”€β”€ inference/       # AI inference API for real-time predictions
β”‚   β”‚   β”œβ”€β”€ infer.py
β”‚   β”œβ”€β”€ pipelines/       # Data processing pipelines
β”‚   β”‚   β”œβ”€β”€ preprocess.py
β”‚   β”œβ”€β”€ notebooks/       # Jupyter notebooks for research and development
β”‚   β”‚   β”œβ”€β”€ model_exploration.ipynb
β”‚   β”œβ”€β”€ requirements.txt # Dependencies for AI model execution
│── tests/                # Testing
β”‚   β”œβ”€β”€ unit-tests/       # Unit testing for all modules
β”‚   β”œβ”€β”€ integration-tests/ # API and full-system tests
β”‚   β”œβ”€β”€ load-tests/       # Performance and stress testing
β”‚   β”œβ”€β”€ security-tests/   # Security and vulnerability testing
│── scripts/              # Deployment & automation
β”‚   β”œβ”€β”€ deploy.sh        # Automated deployment script
β”‚   β”œβ”€β”€ backup/          # Database backup and restore scripts
│── docs/                 # Documentation
│── .gitignore            # Ignore files
│── README.md             # Project overvie
## πŸš€ Getting Started

### Prerequisites
- Node.js & npm
- Python 3.x
- Docker & Kubernetes
- MetaMask (for Web3 integration)
- Hardhat (for smart contract deployment)
- PostgreSQL or MongoDB (database setup)

πŸ“Œ Setup Instructions

1️⃣ Clone the Repository
### Installation
Clone the repository and navigate into the project folder:
```sh
git clone https://github.com/TecExpo/TecX.AI.git
cd TecX.AI

2️⃣ Install Dependencies

Frontend (React.js / Next.js)

Start the Frontend

Navigate to the frontend directory and start the development server:

cd frontend
npm install
npm run dev

Backend (FastAPI / Express.js)

Start the Backend

Navigate to the backend directory and run the servers:

cd backend
pip install -r requirements.txt  # FastAPI
# Start FastAPI server
uvicorn fastapi.main:app --reload
# Start Express.js server
npm install       # Express.js
node server.js

3️⃣ Configure Environment Variables

Create a .env file in backend/ and frontend/ with required API keys and settings.

4️⃣ Start Services

Using Docker docker-compose up --build

Manually

cd frontend && npm run dev # Start frontend cd backend/fastapi && uvicorn main:app --reload # Start FastAPI cd backend/express && node index.js # Start Express.js

5️⃣ Deploy Smart Contracts

Deploy Smart Contracts

Compile and deploy the smart contracts using Hardhat:

cd web3
npx hardhat compile
npx hardhat run scripts/deploy.js   --network rinkeby

Run Database

Start the database services using Docker:

docker-compose up -d

Ensure you configure your .env file with the correct database credentials.

CI/CD Deployment

The repository includes a CI/CD pipeline using GitHub Actions. Push changes to the main branch, and the deployment will be triggered automatically.

πŸ› οΈ Tech Stack

  • Frontend: React.js, Next.js, Tailwind CSS, Web3.js
  • Backend: FastAPI (Python), Express.js (Node.js), WebSockets
  • AI: Hugging Face, TensorFlow, PyTorch, NLP, OpenAI APIs
  • Web3: Solidity, Hardhat, MetaMask, The Graph, Ethers.js, IPFS, Arweave
  • Database: PostgreSQL, MongoDB, Redis, IPFS
  • DevOps: Docker, Kubernetes, Terraform, CI/CD(GitHub Actions, Jenkins)

πŸ” Security Considerations

  • Authentication: Implements SAML, OAuth2, and JWT-based authentication.
  • Smart Contract Audits: Use OpenZeppelin for security best practices.
  • Data Encryption: Sensitive data is encrypted using industry standards.
  • Environment Variables: Ensure API keys and secrets are stored securely.

🀝 Contribution Guidelines

We welcome contributions! Please do as following

  1. Fork the repository and create a new branch(feature).
  2. Make changes and commit with meaningful messages.
  3. Submit a pull request for review.
  4. Follow coding best practices and security guidelines.

πŸ“œ License

This project is licensed under the GNU V3 GPL and, MIT License. See LICENSE for details.

πŸ“ž Contact

For any inquiries, issues or questions, please open an issue on GitHub or contact the maintainers at support@tecx.ai',or 'adm@tecx.ai.


This Document provides a complete overview of the AI Web3 Website repository, including setup instructions, technology stack, security considerations, and contribution guidelines.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •