“Building Fullstack apps with Python” and “Exploring Software Engineering Best Practices”
On November 2, 2023 a hands-on workshop on FastAPI development and test driven development (TDD) was conducted by Mr. Julius Alphonso and Mr. Tanay PrabhuDesai. The workshop was organized by the Association of Computer Engineers (ACE) under the Aarush event at Padre Conceicao College of Engineering (PCCE). The participants were the students of T.E. Comp.
The workshop aimed to introduce the participants to the basics of FastAPI, a modern web framework for building APIs with python. FastAPI is based on standard python type hints and offers features such as automatic documentation, validation, authentication and performance optimization. The workshop also covered the principals and practices of TDD, a software development methodology that involves writing tests before writing code and then refactoring the code to pass the tests.
The workshop was divided into two sessions, each lasting for 1.5 hours. In the first session, Mr. Julius Alphonso explained the core concept of FastAPI and demonstrated how to create a simple API using FastAPI. He also showed how to use tools such as Pydantic, SQLAlchemy and Uvicorn to handle data models, database operations and server deployment. He guided the participants through a series of exercises to help them apply what they learned.
In the second session Mr. Tanay PrabhuDesai introduced the concept of TDD and its benefits for software quality and maintainability. He explained how to use the tool pytest, requests and coverage to write and run tests for applications. He also discussed some common testing patterns and best practices for TDD. He gave the participants a challenge to develop a new feature for the API they created in the first session using TDD.
The workshop was very informative and engaging. We learned a lot about FastAPI and TDD and gained some hands-on experience in developing and testing API’s with python.
Mr. Palaash Naik, (T.E. Comp and ACE Vice President) the co-ordinator for the event appreciated the efforts of Mr. Julius Alphonso and Mr. Tanay PrabhuDesai for conducting such a useful and enjoyable workshop. Report by Mr. Palaash Naik, (T.E. Comp).