MartinsOnuoha / countriesNowAPI

CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. 🌎
http://countriesnow.space
MIT License
185 stars 59 forks source link

Re-write in Typescript #107

Open MartinsOnuoha opened 2 years ago

MartinsOnuoha commented 2 years ago
TimAagaard commented 2 years ago

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.

MartinsOnuoha commented 2 years ago

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