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

Put API code into a library #13

Open
michidk opened this issue Dec 16, 2023 · 1 comment
Open

Put API code into a library #13

michidk opened this issue Dec 16, 2023 · 1 comment

Comments

@michidk
Copy link

michidk commented Dec 16, 2023

Hey, this project is great!

However, I would be even more useful, if we could separate the presentation/app code and the API handling. A crates.io library would allow others to build their own apps using this crate.
For example, I was thinking about building a small website displaying the same information like your CLI app.

@michidk michidk changed the title Put API handling into a library? Put API code into a library Dec 16, 2023
@FaisalBinAhmed
Copy link
Owner

Hi Michael, thanks for opening this issue.

You mean publishing the API handling like fetching stations etc as an API wrapper crate?

It's a good idea, and will make the code more maintainable. I might do it soon-ish but can't promise any timeline :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants