create-lex-app Tailwind Templates

Create Lex App

This is the official React + TypeScript template for building Lex-powered applications. It includes a well-structured setup with Auth0 authentication, Tailwind CSS, Framer Motion animations, and seamless integration with Lex Dev Tools.

πŸš€ Create Lex App - The Fastest Way to Build Lex Apps

Pre-built Authentication, User Dashboard, Routes & Lex Dev Tools

A powerful React & TypeScript template for building Lex apps in minutes.


πŸ”Ή What’s Inside?

This template is built with modern web technologies and comes pre-configured with:
βœ… React 18 + Vite (Fast, optimized frontend framework)
βœ… Lex Developer Tools (@finosync/lex-dev-core) for in-app debugging
βœ… Pre-built User Authentication using Auth0
βœ… MongoDB integration for data storage
βœ… Tailwind CSS for styling & responsive design
βœ… Pre-built Dashboard & Routing system
βœ… TypeScript for strict type safety
βœ… .env.example - All required environment variables pre-configured


πŸš€ Quick Start

1️⃣ Install & Create a New Lex App

npx @finosync/create-lex-app my-lex-app

or globally:

npm i -g @finosync/create-lex-app
create-lex-app my-lex-app

2️⃣ Navigate into your new project

cd my-lex-app

3️⃣ Install Dependencies

npm install

4️⃣ Start Development Server

npm run dev

πŸš€ How to Create a Lex App?

Creating a Lex app is simple and requires just a few steps:

1️⃣ Run the Command

No need to specify a nameβ€”just run:

npx @finosync/create-lex-app

2️⃣ Enter Your Project Name

You'll be prompted to enter a name for your project. Choose a relevant name like:

MyLexApp

3️⃣ Select Your Framework

When prompted, choose:

React-TS (React with TypeScript)

This will generate a fully configured Lex app

4️⃣ Navigate to Your New Project

cd my-lex-app

5️⃣ Install Dependencies

npm install

6️⃣ Add Required Environment Variables

Before running the app, update your .env file with Auth0 and other required settings:

# Auth0 Configuration
VITE_AUTH0_DOMAIN=your-auth0-domain
VITE_AUTH0_CLIENT_ID=your-auth0-client-id

# MongoDB Configuration
VITE_MONGO_URI=mongodb+srv://your-user:[email protected]/your-db

# Lex Dev Tools (Enable/Disable)
VITE_LEX_DEV_MODE=true

7️⃣ Start Your App

Once you've added the required environment variables, start the development server:

npm run dev

πŸ“– Need More Help?

If you're unsure about how to set up Auth0, configure the dashboard, or manage environment variables, visit our Quick Start Guide:

πŸ”— Lex Quick Start Documentation


πŸ› οΈ Features

πŸ”₯ Instant App Setup

  • React 18 + Vite-powered development
  • Pre-built authentication using Auth0
  • User dashboard & navigation pre-configured
  • Lex Dev Tools for debugging & development
  • Pre-configured environment variables (.env.example)
  • MongoDB database integration

πŸ’‘ Seamless Developer Experience

  • TypeScript for strong typing & error prevention
  • TailwindCSS for rapid styling
  • Lex Developer Tools (@finosync/lex-dev-core)
  • Heroicons & Framer Motion for UI animations

πŸ“‚ Project Structure

When you run npx @finosync/create-lex-app my-lex-app, it generates:

my-lex-app/
β”œβ”€β”€ dist/                     # Production build output (generated)
β”œβ”€β”€ node_modules/             # Installed dependencies (generated)
β”œβ”€β”€ public/                   # Static assets (index.html, icons, etc.)
β”œβ”€β”€ src/                      # Source code
β”‚   β”œβ”€β”€ backend/config/       # Contains lex.config.ts for enabling Lex Dev Tools
β”‚   β”œβ”€β”€ backend/database/     # MongoDB database connection
β”‚   β”œβ”€β”€ components/           # Shared UI components
β”‚   β”œβ”€β”€ pages/                # Page-based routing system
β”‚   β”œβ”€β”€ App.tsx               # Main app component
β”‚   β”œβ”€β”€ main.tsx              # Entry point
β”‚   β”œβ”€β”€ index.css             # Global styles
β”œβ”€β”€ .env.example              # Environment variables reference
β”œβ”€β”€ .gitignore                # Files to ignore in Git
β”œβ”€β”€ eslint.config.js          # ESLint configuration
β”œβ”€β”€ index.html                # Root HTML file
β”œβ”€β”€ lex.dev.tsx               # Lex Dev Tools configuration
β”œβ”€β”€ LICENSE                   # MIT License
β”œβ”€β”€ package.json              # Project dependencies
β”œβ”€β”€ package-lock.json         # Lock file for package dependencies
β”œβ”€β”€ README.md                 # This file
β”œβ”€β”€ tsconfig.json             # TypeScript configuration
β”œβ”€β”€ tsconfig.app.json         # TypeScript config for app
β”œβ”€β”€ tsconfig.node.json        # TypeScript config for Node.js
β”œβ”€β”€ vite.config.ts            # Vite configuration

πŸ“ Configuration

πŸ”§ Update Your .env File

After creating your Lex app, update the .env file:

# Auth0 Configuration
VITE_AUTH0_DOMAIN=your-auth0-domain
VITE_AUTH0_CLIENT_ID=your-auth0-client-id

# MongoDB Configuration
VITE_MONGO_URI=mongodb+srv://your-user:[email protected]/your-db

# Lex Dev Tools (Enable/Disable)
VITE_LEX_DEV_MODE=true

πŸ’‘ How to Enable Lex Developer Tools?

Lex Dev Tools (@finosync/lex-dev-core) is already included in your Lex App.
To enable it, modify src/backend/config/lex.config.ts:

export const LexConfig = {
  isDevMode: import.meta.env.VITE_LEX_DEV_MODE === "true", // βœ… Enable in dev mode
  enableDevTools: true, // βœ… Enable Lex Dev Tools
  enableLogging: true, // βœ… Optional: Enable logging for debugging
};

πŸ“¦ Dependencies

This template includes the following pre-installed dependencies:

"dependencies": {
  "react": "^18.3.1",
  "react-dom": "^18.3.1",
  "@finosync/lex-dev-core": "^1.0.0",
  "@heroicons/react": "^2.2.0",
  "framer-motion": "^12.4.1",
  "mongoose": "^6.3.1",
  "express": "^4.18.2"
},
"devDependencies": {
  "@vitejs/plugin-react": "^4.3.4",
  "tailwindcss": "^4.0.3",
  "typescript": "~5.6.2",
  "vite": "^6.0.5"
}

πŸ“š Documentation

πŸ“– Full Documentation: FinoSync Docs


🀝 Contributing

Lex App is open-source & community-driven.
If you’d like to contribute, feel free to open issues, submit PRs, or suggest features.


πŸ’° Support & Sponsorship

πŸ’™ If you find this project useful, consider sponsoring it to support development:


πŸ›‘οΈ License

This project is licensed under the MIT License - Free for personal & commercial use.

πŸ”Ή Built & Maintained by FinoSync
πŸ”Ή Join our community on Discord


πŸ”₯ Start building with Lex today! πŸš€


Top categories

Loading Svelte Themes