countriesNowAPI icon indicating copy to clipboard operation
countriesNowAPI copied to clipboard

Re-write in Typescript

Open MartinsOnuoha opened this issue 2 years ago • 2 comments

  • The idea is to help improve DX (developer experience) when contributing to the project

MartinsOnuoha avatar Apr 11 '22 12:04 MartinsOnuoha

I was thinking we could do a rewrite from scratch and call it v1.0

Make it TypeScript, get rid of all the no-longer maintained dependencies (npm lists a bunch on a fresh install), aggregate the data into SQL tables in something like SQLite (it's stored as a local file, so no external DB server) with an ORM like Sequelize that way we could leverage the speedy lookups and filtering of a database (since it will be using B-Trees) instead of filtering JSONs.

would be happy to contrib if you made a fresh new long-term release branch and set up your CI/CD stuff and the hbs stuff doing the front-end portion of the server.

TimAagaard avatar Apr 17 '22 23:04 TimAagaard

Hey Tim, yes it absolutely makes sense to aggregate the data into SQL tables in something. and a local file option like SQlite would work since the data wouldn't be growing.

I'll do the initial setup to transition to TS and let you know

MartinsOnuoha avatar Apr 21 '22 23:04 MartinsOnuoha