Android Clean Architecture Boilerplate Code Generator

Arundhati Gupta
Techtics
Published in
2 min readDec 25, 2019

“Good architecture makes the system easy to understand, easy to develop, easy to maintain, and easy to deploy. The ultimate goal is to minimize the lifetime cost of the system and to maximize programmer productivity.” ― Robert C. Martin

Assuming, that you are aware of what clean architecture is, I would jump over to the subject of the blog i.e. the Generator for Android Clean Architecture Boilerplate.

Haha! Just in case, you are a newbie or are curious what clean architecture is you might want to have a look at an excellent blog on Clean Architecture and then proceed.

Have you been an app developer who has been writing code (or maybe copying code from exiting apps) while beginning to develop a new app? Then, the Android Clean Architecture Code Generator is here to save your time!

Good architecture is a must in today’s fast-growing world of technology. You might have to write a bit more code (that obviously requires extra effort) in the beginning, but as you continue with development, you realise that it is worth your time.

In an effort to reduce this recurrent effort in the beginning, I have tried to come up with a generator that provides a base Android application boilerplate based on the principles of clean architecture.

Installation

Assuming you have pre-installed node.js, perform the following steps:

Install Yeoman

npm install -g yo

Install the generator-android-clean-architecture-boilerplate

npm install -g generator-android-clean-architecture-boilerplate

Generate your new project as follows:

mkdir NewApp
cd NewApp
yo android-clean-architecture-boilerplate

You may check out the complete code at Techtics — Generator Clean Architecture Boilerplate on GitHub.

--

--

Arundhati Gupta
Techtics

Software Engineer @ Uber | Avid Reader & Listener | Creativity Lover | https://arundhatigupta.in