5 ms·
Thank you. I was looking for an API only yesterday, and didn't find any that is as good as this one. Even the Princeton University one didn't fit into my workfl
by abhididdigi 12y ago
Thank you. I was looking for an API only yesterday, and didn't find any that is as good as this one. Even the Princeton University one didn't fit into my workflow, because it is overly complex.
- impostervt 12y agoThat's pretty much why I built this. It's a great resource, but geared towards lexicographers vs developers.
- ghchinoy 12y agoThis is awesome! I'd love to hear more about how this was created (node/express, etc.)!
- impostervt 12y agoIt's a Node/express app. The word data is in Postgres (hosted by heroku), user/metric data is in mongo (via mongolab.com). Hosting is from heroku fronted by cloudflare.
- ghchinoy 12y agoThank you! Impressive. How do you limit anonymous web user's queries?
- impostervt 12y agoRequests made for the demo don't have an access token. On the back end I look for this case, and then see if the request has "when" and "encrypted" parameters. "when" is just a date/time stamp, and "encrypted" is the same thing..encrypted. If I see both those params, I decrypt the "encrypted" and make sure it matches the "when" to validate the server created it, and make sure the "when" is less than one hour. Otherwise, all requests require an access token.
- bovermyer 12y agoWhat do you use to cache requests?
- impostervt 12y agoRedis & cloudflare.
- kamladi 12y agoWhat lead you to use Mongo for userdata/metrics and Postgres for words? Are there specific features of each that you're using? I'm new to both, so just trying to learn which use cases prefer one over the other...
- kamladi 12y agoWhat lead you to use Mongo for userdata/metrics and Postgres for words? Are there specific features of each that you're using? I'm new to both, so just trying to learn which use cases prefer one over the other...
- kamladi 12y agoWhat lead you to use Mongo for userdata/metrics and Postgres for words? Are there specific features of each that you're using? I'm new to both, so just trying to learn which use cases prefer one over the other...
- kamladi 12y agoWhat lead you to use Mongo for userdata/metrics and Postgres for words? Are there specific features of each that you're using? I'm new to both, so just trying to learn which use cases prefer one over the other...