I'm considering moving my freelance work from my desktop (Mac Mini) to a laptop, and I'm waffling between the new MacBook Air and Pro models. With the same RAM and storage, the price difference is considerable (about $750), and the big difference seems to come down to the processor: the Air has (optionally) a 1.2GHz quad-core 10th-gen i7, while the Pro has a 2.6GHz six-core 9th-gen i7. (Screen size isn't really relevant here; they've both got Thunderbolt ports to which I'll be hooking up a docking station and a large monitor.)
My C#.NET WPF application running Drupal 8 backend is serving 3 different departments as clients. Each of my content type structure is referencing a content type Department. Every user in the system belongs to a single Department. I am using the JSON API to get data to and from my Drupal 8 Backend.
Is there a way to give roles to users that have permissions applicable to a certain country? For example, I only want an admin for the country Brazil. So they can add users to the Brazil site but those users would not be reflected in another country site like Canada.
I would like to create some statistics: total number of registered users, total number of subscribers, total number of registered users online on website without paid membership and so on.
I'm trying to find out a solution. DRUPAL8.
Create a table in the database with all the statistics I need, after that create a view page with the the information from that table, so I need to write some custom php code in that view with simple queries.
Is this a good approach? There are any rules? I'm new to Drupal, thanks in advance.
Can I build in API-first approach and still apply the usual approach to drupal theming? Go to production and then in the future (say a year's time) build a JS framework frontend that reads off content from the API-first drupal repository? Thsank you for any direction.