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

stap out api #3

Open
6 tasks
milad-rasouli opened this issue Feb 1, 2025 · 0 comments
Open
6 tasks

stap out api #3

milad-rasouli opened this issue Feb 1, 2025 · 0 comments
Assignees

Comments

@milad-rasouli
Copy link
Owner

  • create / get endpoint to show the users the ui that allows them to enter the url of repo.
  • create /result/{md5} get to show the result to users and if the result i cashed it should be shown or show the time that the result is created.
  • create /{repo address} to clone(without its submodules) and perform tokei . -o json then store the result in redis for 3 days then redirect them to /result/{md5} to see their result.

potential issues:

  • make sure the cloned repo gets removed after gaining the tokei results
  • make sure it stores in redis for 3 days
  • make sure you aren't cloning a chased repo if so just need to redirect them to /result/{md5}

p.s: the {md5} is a hash string of the repo url

@milad-rasouli milad-rasouli converted this from a draft issue Feb 1, 2025
@milad-rasouli milad-rasouli self-assigned this Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant