YMCA is a Yeoman generator to scaffold an Android application based on the Google's sample ToDo list which illustrates the MVP pattern and clean architecture principles.
You can use it to bootstrap an application project to save time for instance. It may also help if you consider diving into the ToDo sample and familiarize with the MVP pattern or the Clean Architecture concepts.
Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive.
npm install -g yo
Yeoman travels light. He didn't pack any generators when he moved in. You can think of a generator like a plug-in.
To install generator-ymca from npm, run:
npm install -g generator-ymca
Create the folder for your project and move into:
mkdir my-awesome-app && cd $_
Then initiate the generator:
yo ymca
This will create a MVP structured ToDo list Android app skeleton based on the clean architecture principles. Once you ran it, you are free to remove any part of that wouldn't fit your needs (ie. you may not be interested in creating a ToDo list application).
v1.0: simple MVP generator inside
- Adding support for others Google's samples
- Adding more configurable fields in the generator
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Make sure all tests still pass
mocha test/test-app.js
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
If you found YMCA useful you can tweet just by clicking here!
Inspired by the generator-android-square-stack & made with the yeoman generator-generator while listening to the village people tube (if you didn't have the song in your head yet, you do now).
The MIT License (MIT)
Copyright (c) 2016 Thomas Dalous
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.