Developing a simple e-commerce application from scratch to production using SpringBoot

Sharing is caring!

We can find plenty of information on any technical topic, be it Java, .NET, Python or any frameworks like Spring, Hibernate, CDI, JSF etc. You can find hundreds of well written blogs on many of these topics. For example, you can find lot of tutorials on how to use SpringBoot or how to use various mappings in JPA/Hibernate or how to do form validations in JSF etc. Also, there are plenty of books published by well established publishers on most of the technologies.

But once the “Junior Developer” stage is crossed, many developers would like to learn more about how to design an application, how to modularize the code, what security aspects should be considered, what measures we should take while deploying into production and how to handle the production issues etc.

We can find articles on these topics in bits and pieces but not in an organized manner. So, I thought of starting a series of articles covering “How to develop an application from scratch to production?“. What I am going to do is I will start developing an application (neither a simple HelloWorld app nor a NextGenerationAwesome product, but a decent size application) and write a series of articles explaining how we can develop the application in a step by step manner.

Why I am writing these article series?

To help junior developers:
Every week I receive at least couple of emails from software developers with 1 to 3 years of experiencing for a suggestion.

Those emails goes like this:

I joined in XYZ company as a fresher and I have been there for the last 2+ years. They put me in a maintenance project where I mostly work on defect fixes and I never really worked on anything from scratch. Now I am not at all confident about my technical skills as I have not implemented anything on my own apart from fixing defects here and there. Here we don’t see any new projects in near future. So I want to move to a different company, but I am having a very hard time in clearing the interviews.

So, could you please advise me how to learn Java the way people use it in real projects, not basic HelloWorld kind of samples? Could you suggest any books, blogs? Should I learn Spring, Hibernate to get a Job?

I feel very sad to see the people in this kind of situation because I know how painful it is. But also simply blaming the company for not giving an opportunity to build something from scratch won’t help. Teaching you latest and greatest technologies may not be your organizations top priority.

Some people told they even joined some training institutes to learn Java while working as Java developers!!. But again they are disappointed because they got basic HelloWorld kind of training only, not the way projects are developed in organizations.

So, I thought of helping them by writing a series of articles explaining how the project development from scratch looks like.

Material for my trainings
I do give trainings on Core Java, Spring and JavaEE. I hope the projects that will be developed for this series may also be helpful for my Java trainings as well.

I want to learn more
Teaching is the best way to learn.

What we are going to do?

We will develop an e-commerce application using Java technologies. We will start from the very beginning of Requirements Gathering and go through all the phases of Analysis, Design, Implementation and Deployment in a step by step manner.


Table of contents:

  1. Introducing the application JCart
    • High Level Requirements
    • Overview of System Architecture
  2. Requirements Analysis
  3. Selecting The Technology Stack
    • Platform, Frameworks
    • Application Server, Database
    • IDE, Build Tool, Version Control System (VCS)
    • Continuous Integration, Code Quality Checking
  4. Release Planning
    • Plan Iterations & UseCases
    • Estimations & Release Schedules
  5. Setting up the Development Environment
  6. Building Administration/ShoppingCart WebApps
    • Iteration – 1
    • Iteration – 2
    • Iteration – 3
    • Iteration – 4
    • Iteration – 5
    • Iteration – 6
    • Iteration – 7
    • Iteration – 8
  7. Deploying to Production
    • Clustering and Load balancing
    • Setting up Monitoring Tools


For this whole exercise we will build a ShoppingCart application “JCart” using SpringBoot, SpringMVC, Thymeleaf, JPA(Hibernate). I too have this habit of prefixing with J for everything I built with Java :-).

If everything goes as planned and once we finish this application, then probably I will try to implement the same application using JavaEE stack (CDI, EJB, JPA, JSF etc).

Stay tuned 🙂

Sharing is caring!


  1. Hi Siva,

    This is a very good initiative from you. I joined the software industry in hopes of becoming a developer, but I am placed in aTesting Project and couldn’t fulfill my hopes untill now(its been 3 years I joined),

    But I never gave up on my dream and started learning after my office hours, now I am in a position to develop an eCommerce website on my own(even though I cant say it is production ready, ). I reffered multiple open source eCommerce projects like Broadleaf and Shopizer to understand the architecture and design for an eCommerce website and learned in a hard way. I wish I had these kind of tutorial when I am starting out, would be a very good tutorial for guys who are starting out and especially for those passionate and enthusiastic “Junior Developers”.

    I am looking forward to observe the design and coding practices you will be following in the future tutorials in this series.


      1. Hi Shiva & Sai,
        Thanks Lot for the great resource, i cloned the project and integrated with tomcat server, server is starting successfully, but it showing 404 error, is there any specific rule to open this application in browser.


  2. Hello Siva,

    I just want to thank you very much for your tutorials. They are simple, straight to the point and very easy to understand. Thank you so much.
    I just bumped into you website a couple of days ago and really loved your articles. I’m currently following the progress of the JCart application.

  3. Hi Siva,

    please get all my gratitude for this brilliant work (its simplicity makes it amazing) .. well I just discovered recently this website but I do really like so hope you can help me while trying to learn by example as I go through your items and applications..
    Thanks in advance,

  4. Hi Siva,
    Thank you for posting these article on developing e-commerce website, the initial ones of how to do high level designing and which technology to select are the most important part, and you made it look very easy for us. Thank you. Please post the other articles also of this JCart development.

  5. Hi Siva,
    Thanks for posting the article. I got this article “ Address already in use: bind” while launching the site module. still i got this issue even i change the server.port value in properties file.
    The following things I did
    – Import project using STS
    – used Oracle driver dependency
    – run the site module as java application.

    please let me know what are the steps to follow to resolve this issue.

  6. Hi Shiva Reddy Sir,
    I have been looking for your book SpringBoot Learn by example, but unable to get it and even also don’t allow to purchase now.
    I am java enthusiats curious to learn new technology and frameworks.
    Can you please help me to get the above book.??
    Hope to get reply from you

  7. Hi Shiva
    I want to learn spring boot from scratch. i dont know any programming languages. I am new to this field could you guide me which is the best place to start

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.