How to make AJAX Load More Posts on Scroll for custom theme and custom-post-type?

I am currently working on a project where I am coding a custom theme with custom-post-type called products. Now, I am coding archive-product.php and stuck at making an AJAX load more posts on scroll for that.

I saw and tried most of the options available on internet. Most of them are made for Twenty Thirteen or some theme. I expect a custom code specifically for custom post type and that works for my custom theme.

Is this possible way to do so? I just want a code so that I can get more posts on scroll.