-
-
Notifications
You must be signed in to change notification settings - Fork 43
Implement telnet server #27
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
Conversation
|
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/warengonzaga/covid19-tracker-cli/79ww6j9gx |
warengonzaga
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to use your implementation?
|
Just run |
|
This is nice :) |
ianvizarra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated attribute is available in Country API now
telnet.js
Outdated
| // empty, country, history, chartType | ||
| const [_x, country, history, chartType] = query.split('/'), | ||
| countryData = await axios.get(`${apiBaseURL}/countries/${country}`), | ||
| all = await axios.get(`${apiBaseURL}/all`), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can omit this call now since we only call this to get the "updated" attribute.
The country API has updated attribute available now.
so instead of u.updated use d.updated on line 37 same with line 45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi I already removed the extra API call on country tracker. Can you please verify if this is correct. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ianvizarra please verify this and close if necessary so we can move forward. Will improve this later on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
outdated nato...
3b395b4 to
a503378
Compare
|
@ianvizarra can we close this? It seems outdated the code base... submit PR again... |
Request for Comments!
My initial implementation of telnet server. I implemented this because when I'm using
watchto poll the updates, it doesn't render the ascii charts properly on my terminal. Not sure you encountered this guys. It is still buggy at the moment(crash prone) and it still doesn't have any proper form validation. Also, the form UI is still plain and clunky. Maybe anyone here with experience with BlessedJS and telnet programming can make this better because I'm still in the process of tinkering and learning this technologies 😅.