angulardatabasesqlitedeploymentnode-sqlite3

How to use Sqlite3 with Angular?


I'm working with an Angular project, I want to add a small database in order to save little information, my question is: Do I need to build a backend for this?

If I need to build it, where do you recommend deploying my backend and my frontend?

I'm new in this world sorry if the question is so basic, and sorry with my english im learning english too


Solution

  • Welcome! You will need a backend to host sqlite3, since you are just dipping your toes into the dev world you should know there are countless options, you can host the database yourself on your own server but that will require you to learn about backend and best practices or you can use a managed service like Turso, which host the database for your and you can just interact with it via API calls. Some of these managed services can offer a free tier, which saves money but you will be locked into their service/api if you ever want to build a money making product. I highly recommend you research what your app does and weight the pros and cons of each approach.

    You can deploy your frontend in places like Github Pages, Cloudflare pages, netlify, vercel etc... all these services provide a free tier.