Skip to content

greengrowapps/generator-android-jhi

Repository files navigation

generator-android-jhi NPM version Build Status Dependency Status

Scaffolds Android Kotlin-Based App that consumes an Api scaffolded with JHipster generator.

This generator is currently working only with a Monolithic Application and JWT authentication generated by JHipster. You will need to run the jhipster-social-login-api if you want to sign in with Google and/or Facebook in your api

First, install Yeoman and generator-android-jhi using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-android-jhi

Usage

Create a folder and go inside

mkdir my-android-project && cd my-android-project

then generate the code:

yo android-jhi

You can copy your .jhipster folder from the target Jhipster project and run:

yo android-jhi:entity

Then you can choose which entities do you want to consume with your mobile App. CRUD operations will be scaffolded

Finally import the project with Android Studio

Configure Social Login

On your web/api project use the jhipster-social-login-api to add the extra controllers that you need and follow the instructions

For google, run

./gradlew signingReport

And generate as many Android credentials as you need (one for packageName-keystoreSHA1 pair)

then copy the Client-id from YOUR WEB CREDENTIAL (don't use the client-id from the Android credentials) and replace the value of the "google_login_web_client_id" string resource

For facebook replace the two string resources for de values in your credential

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

Apache-2.0 © Green grow apps

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published