For everyone who know “Evernote”… did you hear about Joplin?
Joplin is a great open source tool to manage all your notes. Have a lot of options.
Check their website:
When you want to sync all your notes over all your devices there is Joplin Sync Server:
This server can be installed as Add-On and you are able to sync all notes.