A modern, cross-platform social app built with Expo, React Native, TypeScript, and a Node.js/Express backend in a monorepo structure.
Mention is a universal social platform inspired by Twitter/X, designed for mobile and web. It features real-time feeds, user profiles, trends, notifications, and more. Built with Expo, React Native, and a Node.js backend in a modern monorepo structure, it supports file-based routing, multi-language support, and a modern UI.
This is a monorepo using npm workspaces with the following structure:
/
├── packages/ # All code packages
│ ├── frontend/ # Expo React Native app
│ │ ├── app/ # App entry, screens, and routing
│ │ │ ├── [username]/ # User profile, followers, following
│ │ │ ├── kaana/ # AI assistant or help section
│ │ │ ├── p/[id]/ # Post details, replies, quotes
│ │ │ └── ...
│ │ ├── components/ # UI components
│ │ ├── assets/ # Images, icons, fonts
│ │ ├── constants/ # App-wide constants
│ │ ├── context/ # React context providers
│ │ ├── features/ # Feature modules
│ │ ├── hooks/ # Custom React hooks
│ │ ├── interfaces/ # TypeScript interfaces
│ │ ├── lib/ # Library code
│ │ ├── locales/ # i18n translation files
│ │ ├── scripts/ # Utility scripts
│ │ ├── store/ # State management
│ │ ├── styles/ # Global styles and colors
│ │ └── utils/ # Utility functions
│ ├── backend/ # Node.js/Express API server
│ │ ├── src/ # Backend source code
│ │ │ ├── controllers/ # API controllers
│ │ │ ├── middleware/ # Express middleware
│ │ │ ├── models/ # MongoDB models
│ │ │ ├── routes/ # API routes
│ │ │ ├── scripts/ # Utility scripts
│ │ │ ├── sockets/ # WebSocket handlers
│ │ │ ├── types/ # TypeScript types
│ │ │ └── utils/ # Utility functions
│ │ └── ...
│ └── shared-types/ # Shared TypeScript types
│ ├── src/ # Type definitions
│ └── dist/ # Compiled types
├── package.json # Root package.json with workspaces
├── tsconfig.json # Root TypeScript config
└── ...
- Node.js 18+ and npm 8+
- MongoDB instance
- Expo CLI for mobile development
-
Clone the repository
git clone https://github.com/OxyHQ/Mention.git cd Mention -
Install all dependencies
npm run install:all
npm run dev# Frontend only
npm run dev:frontend
# Backend only
npm run dev:backendThe frontend is an Expo React Native app that can run on:
- Web:
npm run web(ornpm run dev:frontendthen press 'w') - iOS:
npm run ios(requires macOS and Xcode) - Android:
npm run android(requires Android Studio)
The backend runs on the development server with hot reload:
npm run dev:backendnpm run dev— Start all services in development modenpm run dev:frontend— Start frontend development servernpm run dev:backend— Start backend development servernpm run build— Build all packagesnpm run build:shared-types— Build shared types packagenpm run build:frontend— Build frontend for productionnpm run build:backend— Build backend for productionnpm run test— Run tests across all packagesnpm run lint— Lint all packagesnpm run clean— Clean all build artifactsnpm run install:all— Install dependencies for all packages
npm start— Start Expo development servernpm run android— Run on Android device/emulatornpm run ios— Run on iOS simulatornpm run web— Run in web browsernpm run build-web— Build static web outputnpm run lint— Lint codebasenpm run clean— Clean build artifacts
npm run dev— Start development server with hot reloadnpm run build— Build the projectnpm run start— Start production servernpm run lint— Lint codebasenpm run clean— Clean build artifactsnpm run migrate— Run database migrationsnpm run migrate:dev— Run database migrations in development
npm run build— Build TypeScript typesnpm run dev— Watch and rebuild typesnpm run clean— Clean build artifacts
All project documentation is available in the docs/ folder:
- Mention System Overview - Complete guide to the mention system
- Mention Format Specification - Final format summary for mentions
- Mention Implementation - Implementation details
- Notifications System - Notification system documentation
- Visual Guide - Visual design guide
- Theming Guide - Complete theming system documentation
- Theme Quick Reference - Quick reference for developers
- Theming Troubleshooting - Common theming issues and solutions
- Performance Optimizations - Performance best practices
- Vercel Deployment - Deployment guide for Vercel
- Code Cleanup Summary - Code cleanup documentation
The Mention API is a robust backend service built with Express.js and TypeScript, providing functionality for social media interactions including posts, user management, authentication, and real-time communications.
For detailed API information, see the Backend README.
Contributions are welcome! Please open issues or pull requests for bug fixes, features, or improvements.
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests and linting:
npm run test && npm run lint - Submit a pull request
This project is licensed under the MIT License.