This question already has an answer here:
it should be a quite standard demand.
- load data from a database (in this case PostGis)
- add data to the layer (in this case points with attributes)
- save new data back to database
I use this functionality with google maps api, but I wan't to move to Openlayers (3/4). Does anyone know a good example, tutorial how i could implement this?