Generally speaking, the plane will start boarding about half an hour before takeoff. As for the time to stop boarding, different flights and airlines may have different regulations. Most people will stop boarding about 20 minutes before take-off, and then the doors of the plane will close.
Generally speaking, domestic flights will stop check-in about 30 to 45 minutes before the plane takes off. If it is an international flight, check-in will stop about 45~60 minutes before the plane takes off, so passengers need to arrive at the airport in advance and check in first. Generally speaking, domestic flights need to arrive at the airport about two hours in advance, which is enough time. You can basically check in about an hour and a half before the plane takes off. After getting the boarding pass, you need to go through the security check, and the security check also needs to be queued, which takes some time. After the security check, you can go to the boarding gate and wait for the plane.