I suggest to start with a plain Parse Server 7 installation, without any custom modifications, configs or Cloud Code. For example use the Parse Server example repo. Then, gradually add your customizations. Regarding server initialization, taking a look at the Parse Server 6 migration guide may be helpful, because since then, Parse Server is initialized asynchronously and requires the start()
method to be called.