A compact accelerator-driven neutron source is proposed at Sino-French Institute of Nuclear Engineering and Technology, Sun Yat-Sen University, called Sun Yat-Sen University Proton Accelerator Facility (SYSU-PAFA). The proton accelerator is composed of a proton electron cyclotron resonance source, a four-vane radio frequency quadrupole (RFQ), and an alternative phase focusing drift tube linac (APF-DTL). It can accelerate 10 mA proton beam to 8 MeV. Due to the high current, beam matching is particularly important. In order to achieve beam matching between various components, beam transport sections are needed. The beam transport line is divided into three segments. The Low Energy Beam Transport (LEBT) ensures that the beam parameters are matched before entering the RFQ. The Medium Energy Beam Transport (MEBT) segment efficiently transfers the beam between the RFQ and DTL. The High Energy Beam Transport (HEBT) focuses on transporting the beam to the targets. The design goal of beam transport line is as short as possible while ensuring high efficiency of beam transportation. SYSU-PAFA has an overall transmission efficiency of 99%, with optimal transverse matching conditions between beam transport and RFQ or DTL accelerators. The efficient use of solenoids and magnets allows for a compact transmission section, resulting in a total length of 13.6 meters, shorter than most accelerators at the same beam energy. This paper will provide the detailed beam dynamics of the compact accelerator.