Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Datasette was designed for Vercel from the start. It's a really great way of turning data into a read-only API, with both JSON and GraphQL endpoints.

https://datasette.io/

Demo here: https://datasette.simonwillison.net/simonwillisonblog

GraphQL demo here: https://datasette.simonwillison.net/graphql?query=%7B%0A%20%...

To deploy a SQLite database to Vercel with a GraphQL API:

    brew install datasette
    datasette install datasette-publish-vercel
    datasette publish vercel mydatabase.db \
      --project my-new-vercel-project-name \
      --install datasette-graphql
Here's a tutorial on how to get data into that SQLite database in the first place: https://datasette.io/tutorials/clean-data


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: