05 Video Tutorial of the Opm Project

05 Video Tutorial of the opm Project #

05 [Video] Introduction to OPM Projects

Hello, I’m Wen Ming.

For today’s content, I have specifically prepared a video to explain. However, before you watch the video, I would like to ask you a few questions:

  • In a real project, would you configure nginx.conf to interact with Lua code?
  • Do you understand how to organize the code structure of OpenResty?

These two questions are also the core concepts that will be addressed in today’s video lesson. I hope you can take some time to think about them and come to the video with these questions in mind.

At the same time, I will provide corresponding text descriptions to help you summarize and review the content after watching the video. The following is the written introduction for today’s lesson.

Today’s Focus #

opm is one of the few web projects in OpenResty, and the code inside is mostly personally handled by the author of OpenResty.

Many OpenResty users are unaware of how to configure nginx.conf in a real project and how to organize the Lua code. Indeed, there are not many open source projects that can provide guidance on this, which presents a considerable challenge for learning and usage.

However, with the help of this project, you can overcome this obstacle. You will become familiar with the structure and development process of an OpenResty project, and you will also see how the author of OpenResty writes Lua code for business purposes.

opm also involves database operations, and it uses PostgreSQL for data storage in the backend. This will give you a chance to learn how OpenResty interacts with databases.

In addition, this project also touches on some simple performance optimizations, which will pave the way for the dedicated performance optimization content that follows.

Finally, after browsing this project, you can also take a look at another similar project, which is the official website of OpenResty: https://github.com/openresty/openresty.org.

PowerPoint Reference #

Today’s PowerPoint slides have been uploaded to my GitHub. You can download them and study on your own.

Link: https://github.com/iresty/geektime-slides

If there are any unclear points, you can ask questions in the comment section. You can also share your learning experience in the comment section. Looking forward to our conversation. Feel free to share this article with your colleagues and friends. Let’s communicate and improve together.