How do I export a content type, views as a single module I've a view, content type, field collection, flexslider to satisfy a single user case. May I know how to export all these three as a single module.
You could use some Drupal Console export commands for this:


config:export:content:type
config:export:view


You could use the --module option to specificy which module to export.

It's easier to use the Features module though. From the project page:


  A feature is a collection of Drupal entities which taken
  together satisfy a certain use-case.
  
  Features provides a UI and API for taking different site building
  components from modules with exportables and bundling them together in
  a single feature module. A feature module is like any other Drupal
  module except that it contains additional information in its info file
  so that configuration can be checked, updated, or reverted
  programmatically.
  
  Examples of features might be:
  
  
  A blog
  A pressroom
  An image gallery