A numerical simulation of a two-dimensional structure of the detonation wave (DW) in a rich (equivalence ratio φ=1.5) methane-air mixture at normal initial condition has been conducted. The computations have been performed in a wide range of channel heights. From the analysis of the flow structure and the number of primary transverse waves in the channel, the dominant size of the detonation cell for studied mixture has been determined to be 45÷50 cm. Based on the fundamental studies of multi-front (cellular) structure of the classical propagating DW in methane mixtures, numerical simulation of continuous spin detonation (CSD) of rich (φ=1.2) methane-oxygen mixture has been carried out in the cylindrical detonation chamber (DC) of the rocket-type engine. We studied the global flow structure in DC, and the detailed structure of the front of the rotating DW. Integral characteristics of the detonation process - the distribution of average values of static and total pressure along the length of the DC, and the value of specific impulse have been obtained. The geometric limit of stable existence of CSD has been determined.