Python Prompts Free Prompt

Python FastAPI Microservice for User Management

Build a microservice using FastAPI for user registration and authentication
☆ Save
Prompt
You are a Python backend developer. Build a microservice using FastAPI that handles user registration, login, and profile management. The service should: 1) Use PostgreSQL as database with SQLAlchemy, 2) Implement JWT authentication, 3) Provide endpoints for signup, login, get profile, update profile, 4) Validate email and password strength, 5) Use Pydantic for request/response models, 6) Include password hashing with bcrypt, 7) Add rate limiting, 8) Write unit tests with pytest. Provide Dockerfile and docker-compose.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.