Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to setup any omniport app #113

Open
nisarg73 opened this issue Jul 12, 2020 · 2 comments
Open

Script to setup any omniport app #113

nisarg73 opened this issue Jul 12, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@nisarg73
Copy link
Member

Is your feature request related to a problem? Please describe.

A single command, to setup any omniport app (along with all the dependent services) in local for development.

  • Why this is required?
    For example, If someone wants to setup faculty-profile app locally, along with the respective Backend and Frontend repos, he/she also needs to clone two services i.e. common-biodata and faculty-biodata. But sadly, user gets to know about these dependent repos only by errors which occurs when he/she tries to migrate the database after cloning app's backend.

Describe the solution you'd like

Since every omniport app and service have a generic nomenclature, we can make a conf file for each app, which will contain names for all the dependent repos.

We can execute this script in codebase/ which will correspondingly,

  1. Clone app's Backend and Frontend repos in respective directories.
  2. Clone dependent services in respective directories.
  3. Perhaps even migrate the database!

Describe alternatives you've considered

@algomaster99 suggested that,

  1. We can have a something like python mange.py resolve-dependancy which we can execute in python shell itself.
  2. Since it isn't necessary for cloning Frontend sometimes, we can make this optional and ask user if he/she wants to setup Frontend as well.

Additional context
This script would save time and efforts which goes into running git clone multiple times in different directories before migrating the app :-)

Want to take up?
yes

@algomaster99
Copy link
Member

I find this interesting. @pradumangoyal @dhruvkb would you like to give your two cents?

@dhruvkb
Copy link
Member

dhruvkb commented Jul 13, 2020

Not sure about a manage.py script because that would be backend-specific but I do agree that app configs should have a way to specify dependencies that will automatically be downloaded (if not present already). Something similar to depends_on seen in docker-compose.yml would be nice.

@algomaster99 algomaster99 added the enhancement New feature or request label Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants