I've installed Drupal 8.5.4 and followed these two steps to create a module and an entity type:
drupal gmand filled in the info
drupal gecoand filled in the info (No bundles, No translation, No revisions)
drush en mynewmodulename
Out of the box, refreshing the Drupal main page throws an error complaining that the route is not found.
I had to manually create the module route file and fill it with all the paths from the entity generated files in order to pass the error and get the main page to render.
Now I am getting entity type not exist error.
e.g. routing entries I have added to mynewmodule.routing.yml
entity.mynewmodule_myentityname.add_form: path: '/mynewmodule/myentityname/add' defaults: _entity_form: mynewmodule_myentityname.add _title: 'Add myentityname' requirements: _entity_create_access: 'mynewmodule_myentityname'
I expected the entity forms and list page to work straightaway after creating it using Drupal console. What am I doing wrong?
EDIT: I've also noticed that there is no table created in the database for the new entity.