Learn how to design, build, and deploy an AI-powered chat application from scratch with a focus on modern, scalable web applications. This guide covers microservices architecture, setting up various backend services with Docker containers, building REST APIs with FastAPI, and creating a simple user interface. Key components include a language model API, PostgreSQL database, private Docker network, and Nginx reverse proxy. The project emphasizes engineering and cloud deployment over using commercial platforms, providing a deeper understanding of real-world systems.

19m read timeFrom towardsdatascience.com
Post cover image
Table of contents
IntroductionMicroservices and APIsArchitecture1. Language model API1.1 Running the language model API1.2 Accessing the container1.3 Testing the language model API2. PostgreSQL database server3. Database API3.1 Quick FastAPI example3.2 Connecting to the database3.3 Interacting with the database3.4 Endpoint request and response validation3.5 Running the database API4. User interface4.1 Homepage4.2 Chat Page4.3 Authentication & user sessions4.4 Running the UI5. Private Docker network6. Nginx reverse proxy7. Docker ComposeFinal thoughtsRoadmapAcknowledgementsAI usage

Sort: