Python FastAPI TypeScript .cursorrules prompt file
About .cursorrules prompt file
What you can build
Microservices Management Platform: Develop a cloud-based platform that allows developers to easily design, monitor, and manage microservices leveraging FastAPI and Node.js. It should integrate with API Gateway solutions for traffic management and security, and provide visual analytics using Prometheus and Grafana.
Serverless Application Builder: Create a tool that helps developers design, deploy, and monitor serverless applications using FastAPI and AWS Lambda. This platform should include optimization features for minimal cold start times and provide asynchronous processing support with Celery or RQ.
Real-time Collaborative Tool using Next.js: Build a real-time collaborative web application for team projects, integrating FastAPI for backend services and using WebSockets for communication. The frontend can be built using Next.js, Radix UI, and Tailwind CSS for an optimized user experience.
API Gateway Configuration Service: Offer a simplified interface for configuring API Gateway policies, including rate limiting, request transformation, and security settings. Provide integration options for popular message brokers like RabbitMQ and Kafka for event-driven architectures.
Asynchronous Task Manager: Develop an application to manage and monitor background tasks using Celery or RQ with a FastAPI backend. The service should include a web interface built with React and Next.js, allowing users to visualize task queues and processing stats.
Security and Monitoring Enhanced API Platform: Design a platform focusing on the security and observability of APIs, implementing OAuth2, rate limiting, and using structured logging with centralized log analysis through integrations with ELK Stack or AWS CloudWatch.
E-commerce Solution with Optimal Web Vitals: Build a performant e-commerce solution with Next.js, focusing on optimizing Web Vitals like LCP, CLS, and FID. Use Shadcn UI and Tailwind CSS for styling, and include caching solutions with Redis to improve loading times.
Educational Platform with TypeScript Patterns: Create an educational platform that teaches modern TypeScript best practices, microservices architecture, and serverless optimization. Use real-world coding exercises and projects to illustrate concepts, with interactive examples built in Node.js and FastAPI.
Custom Middleware Creation Service: Provide a service for building custom middleware solutions for logging, tracing, and enhancing API request monitoring. This can be integrated with Prometheus for monitoring and Grafana for visualization.
Event-driven Application Starter Kit: Develop a starter kit for new applications that require event-driven architecture, pre-configured with FastAPI, message brokers like Kafka, and frontend components from Radix UI and Tailwind CSS for quick project setup.
Benefits
- Comprehensive Tech Stack Mastery: Combines expertise in both backend (Python, FastAPI) and frontend (React, Tailwind CSS) tech for holistic application development.
- Advanced API & Microservices Integration: Implements cutting-edge practices like API Gateway for secure, efficient microservices communication and serverless optimization.
- Performance & Security Focus: Emphasizes best practices including caching, security headers, observability, and asynchronous processing for robust, scalable applications.
Synopsis
Developers building cloud-native, full-stack applications can leverage these advanced principles and guidelines to create scalable and performant software using modern technologies.
Overview of .cursorrules prompt
The .cursorrules file defines guidelines and best practices for developers specializing in Python, FastAPI, and various frontend and backend technologies. It emphasizes designing and implementing scalable and performant applications in microservices and serverless environments. Key principles include building stateless microservices, integrating API gateways, optimizing serverless deployments, utilizing asynchronous processing, and ensuring resilient service communication. It provides guidelines for TypeScript code style, file structure, and naming conventions. For performance and security, it outlines caching strategies, security best practices, and monitoring via tools like Prometheus and Grafana. The file also discusses frontend development using Shadcn UI, Radix, and Tailwind, focusing on responsiveness and optimizing Web Vitals in Next.js applications.