Yashasv-Prajapati / Docify

5 stars 2 forks source link

Uml generate functionality #123

Closed nishad-dhuri-05 closed 2 months ago

linear[bot] commented 2 months ago
CS3-133 Fixing UML generate API handler

Currently the API handler is not doing much, the expected things it needs to perform are 1. Start a docker container 2. Clone the user's repository which he selected 3. Perform UML generate action the repo based on the project type (java or python) 4. Add the UML image to repo's .docify-assets folder 5. Commit and push to user's github on docify branch The steps needed to do that are 1. Start a docker container using dockerode 2. Clone the repo using the commands here -> [CS3-79](https://linear.app/t05-cs305/issue/CS3-79/github-authorization-private-repositories#comment-ad3db8c5) 3. Perform UML action using the type of project from the scripts we have outside the ./client folder 4. Move this UML image to repo's .docify-assets directory, make if not already created. Handle make if not already created or simply move graciously. 5. Use the commit.sh script and pass on required parameters to commit and push changes to user's github. 6. Redirect the user to the page that previews this generated UML image.