๐๐๐ป๐ฎ๐บ๐ถ๐ฐ ๐๐ฅ๐จ๐ ๐๐ถ๐๐ต ๐๐น๐ฎ๐๐ธ ๐ฎ๐ป๐ฑ ๐๐ฆ
Web development has too many tools. It is easy to feel lost. You do not need a complex stack for a great user experience.
I built a CRUD system. It uses Flask for the backend and the Fetch API for the frontend.
The main goal is speed. Your page does not need a full refresh to show new data.
Here is how it works:
- A JavaScript function calls the backend.
- It gets data in JSON format.
- It writes new rows into an HTML table.
- This happens when you pick a company or save a form.
The backend follows a clean pattern:
- Routes handle the requests.
- Controllers manage the logic.
- Models talk to the database using SQL.
You do not need heavy libraries for every task. Native JavaScript is enough. It keeps your app light. It helps you understand how the web works.
Source: https://dev.to/hpollack/simple-pero-poderoso-crud-dinamico-con-flask-javascript-y-fetch-api-lok