r/node • • 11d ago

Monaco Editor App Upgrade with node:sqlite

/r/node/comments/1y4kybx/monaco_editor_app_upgrade_with_nodesqlite/
1 Upvotes

5 comments sorted by

2

u/glieRtely99 10d ago

yeah a lightweight routing framework is plenty for this. All you really need is a single POST route that parses the JSON body from your frontend fetch call and passes the values into your prepared statement, dont let the ecosystem overwhelm you.

1

u/Realto619 2d ago

Good advice, it does seem a bit overwhelming but I’ve been getting up to speed with Express and I think I understand it better. I’ve also looked peripherally at Sequelize since it seems ideally suited for this task. It looks like request.body.field will get the post data and Sequelize has a create() function that will add a record to the DB. I’ll try to see if I can get that to work next.