Cover image
Try Now
2025-04-14

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Next.js Directus Turborepo Template

A modern, full-stack monorepo template featuring Next.js, Directus CMS, Shadcn UI, and TypeScript with authentication and declarative routing.

Features

  • 🚀 Full-Stack Setup: Next.js frontend + Directus headless CMS backend
  • 📦 Monorepo Structure: Organized with Turborepo for efficient development
  • 🎨 Modern UI: Shadcn UI components with Tailwind CSS
  • 🔐 Authentication: Integrated NextAuth.js with Directus
  • 🛣️ Routing: Declarative routing system for better organization
  • 📱 Type Safety: Full TypeScript support across all packages
  • 🔧 Development Tools: ESLint, Prettier, and TypeScript configurations

Prerequisites

  • Node.js 18 or later
  • npm (recommended) or yarn

Getting Started

  1. Clone the Repository

    git clone [your-repo-url]
    cd nextjs-directus-turborepo-template
    
  2. Initialize the Project

    npm run init 
    

    this will install dependencies and question you about your installation preference

  3. Start Development Servers

    npm run dev
    

    This will start:

Project Structure

Apps

  • web/: Next.js frontend application

    • Features Shadcn UI components
    • NextAuth.js integration
    • Declarative routing system
    • API integration with Directus
  • api/: Directus backend

    • Custom extensions
    • Seeder functionality
    • Database migrations
    • File upload handling

Packages

  • ui/: Shared React component library
  • directus-sdk/: Custom Directus SDK wrapper
  • eslint-config/: Shared ESLint configurations
  • prettier-config/: Shared Prettier configurations
  • tailwind-config/: Shared Tailwind CSS configuration
  • tsconfig/: Shared TypeScript configurations
  • types/: Shared TypeScript types

Development Workflow

  1. Running the Development Environment

    npm run dev # Starts all services
    
  2. Building for Production

    npm run build # Builds all apps and packages
    
  3. Running Tests

    npm run test # Runs tests across all packages
    
  4. Linting and Formatting

    npm run lint # Run ESLint
    npm run format # Run Prettier
    

Adding New Components

  1. Use Shadcn UI CLI to add new components:

    npm run ui:add [component-name]
    
  2. Components will be available in packages/ui/components/

Deployment

Frontend (Next.js)

  • Optimized for Vercel deployment
  • Supports other platforms (AWS, DigitalOcean, etc.)

Backend (Directus)

  • Can be deployed to any Node.js hosting platform
  • Docker configuration available for containerized deployment

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

相关推荐

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • 1Panel-dev
  • 🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • rulego
  • ⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.

  • sigoden
  • Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.

  • hkr04
  • SDK C ++ MCP (Protocole de contexte modèle léger)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • Rag de conversation sur site avec des conteneurs configurables

  • modelscope
  • Commencez à construire des applications multi-agents LLM, plus facilement.

  • paulwing
  • Un référentiel de test créé à l'aide du service MCP

    Reviews

    3 (11)
    Avatar
    user_5uw1HEMU
    2025-04-23

    As a loyal user of request-mcp, I find it incredibly efficient and easy to integrate into various projects. Created by N0SAFE, this tool excels in making requests seamless and hassle-free. The intuitive interface and straightforward functionality save me a lot of time and effort. Highly recommend it for anyone needing a reliable request management solution!

    Avatar
    user_6jFYNyBE
    2025-04-23

    Request-mcp by N0SAFE is a versatile and efficient tool that has significantly streamlined my workflow. Its seamless integration and intuitive interface make it stand out. I appreciate the detailed welcome information and straightforward start URL provided. Highly recommended for both beginners and advanced users looking for a reliable solution.

    Avatar
    user_TSieSvwE
    2025-04-23

    As a dedicated user of request-mcp, I must say it has significantly enhanced my workflow efficiency. Developed by N0SAFE, this tool is seamless and robust, making it a must-have for anyone looking to streamline their request management. Highly recommend it!

    Avatar
    user_jbzVsuYS
    2025-04-23

    As a loyal user of request-mcp, I highly recommend this product. It is incredibly user-friendly and efficient. The functionality provided by N0SAFE is top-notch, making my tasks easier and saving me time. The seamless integration and comprehensive documentation ensure a smooth experience. Whether you are new to this kind of application or an experienced professional, request-mcp is definitely worth trying out.

    Avatar
    user_GKXGVDhs
    2025-04-23

    I've been using request-mcp, developed by N0SAFE, and I'm thoroughly impressed. It's incredibly user-friendly and efficient for managing multiple requests. The seamless integration and straightforward start URL make it a must-have tool for anyone looking to streamline their process. Highly recommend!

    Avatar
    user_yW9wPZJi
    2025-04-23

    As a dedicated user of request-mcp, I am thoroughly impressed by its performance and usability. It simplifies complex processes and enhances productivity significantly. N0SAFE has created a gem with this tool, making HTTP requests in my projects efficient and hassle-free. Highly recommended for anyone needing a reliable solution!

    Avatar
    user_PF7qSxFi
    2025-04-23

    I've been using request-mcp by N0SAFE for a while now, and it has genuinely improved my workflow. The interface is user-friendly and the functionalities are top-notch. The seamless integration and robust performance make it a must-have for developers. Highly recommended!

    Avatar
    user_AyIVcPkE
    2025-04-23

    Request-mcp by N0SAFE is a fantastic utility for any MCP application enthusiast. It simplifies the process amazingly, offering seamless integration and efficient performance. The user-friendly interface and easy start-up make it accessible even for beginners. Highly recommended for anyone looking to enhance their MCP experience!

    Avatar
    user_q0U3YkfX
    2025-04-23

    As a dedicated user of request-mcp, I've found it to be exceptionally reliable and efficient. Developed by N0SAFE, this tool streamlines my workflow effortlessly. The user-friendly interface and seamless integration are unmatched. Highly recommend for anyone needing a robust application tailored to meet demanding requirements!

    Avatar
    user_5XYVJFBA
    2025-04-23

    Request-MCP by N0SAFE is a fantastic application for managing your applications efficiently. Its user-friendly interface and seamless functionality make it a must-have for anyone looking to optimize their workflow. The welcome message immediately makes you feel at home, and the support is top-notch. Highly recommended!

    Avatar
    user_EGKrFacq
    2025-04-23

    I've been using request-mcp by N0SAFE and it has truly exceeded my expectations. The tool is incredibly efficient and user-friendly. The seamless integration and ease of use make it an indispensable asset for my workflow. Highly recommended to anyone in need of a reliable and robust solution.