[08:43:07] | * botlfarm[m] has joined #farmos |
[08:43:08] | <botlfarm[m]> | Hey Everyone, Although not specifically a farmOS question I thought you all could point me in he right direction. I'm attempting to install Farmer Ed [google calendar module](https://github.com/Farmer-Eds-Shed/farm_calendar_events). It requires the [google api PHP client](https://www.drupal.org/project/google_api_client). I'm having trouble figuring out where to put the libraries folder this requires in my instillation. |
[08:46:35] | <FarmerEd[m]> | For the API client or the calendar module? |
[08:46:59] | <botlfarm[m]> | for the API client |
[08:48:08] | <FarmerEd[m]> | composer require 'drupal/google_api_client:^4.2' |
[08:52:36] | <botlfarm[m]> | Perfect! Thanks. I was trying to install it manually with no success. This worked |
[09:13:14] | <FarmerEd[m]> | Great, I probably should add some setup instructions. |
[09:16:30] | <FarmerEd[m]> | There is probably still a bit of work to be done, so feel free to give any feedback. |
[09:16:30] | <FarmerEd[m]> | Have you Google API credentials? You'll need them to configure the API client, there is instructions on that on the modules page. |
[09:18:26] | <botlfarm[m]> | I'm working on the API credentials now. The instructions were fairly strait forward, but getting an error at the authenticate step. Looks like "It may take 5 minutes to a few hours for settings to take effect" |
[09:30:25] | <botlfarm[m]> | Looks like it was just a http vs https issue I was having. Got it set up and it works!! Thanks Farmer Ed . I got to run now but I will play with it later. |
[12:00:08] | * calbasi[m] has quit (Quit: You have been kicked for being idle) |
[12:00:09] | * margeo[m] has quit (Quit: You have been kicked for being idle) |
[17:28:51] | <paul121[m]> | <FarmerEd[m]> "Great, I probably should add..." <- sounds like you need a composer dependency ;-) |
[17:31:21] | <FarmerEd[m]> | That too.... |
[17:31:21] | <FarmerEd[m]> | There's still a bit of other work to do. |
[17:40:20] | <FarmerEd[m]> | Mostly tidying up, like code that's copy and pasted that should be a single function. |
[17:41:31] | <FarmerEd[m]> | I presume for composer I need to start using Drupals Git repo? |
[17:49:45] | <paul121[m]> | <FarmerEd[m]> "I presume for composer I need to..." <- You don't have to. In the composer project (the composer file associated with the instance, not a single module) you can add multiple composer repositories. When you say `composer require x/y` these repositories are searched for matching packages |
[17:50:43] | <paul121[m]> | We currently have a couple `farm_profile` modules that are not on Drupal.org. here is an example of how you include these repos in your composer project file:... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/299550405e...) |
[17:51:09] | <paul121[m]> | (notice `packages.drupal.org/8` - that's what makes the drupal modules available!) |
[17:52:12] | <paul121[m]> | ah and oops. don't use `"type": "git"` - you have to have a Git SSH key configured. Instead it will be easier to use VCS |
[17:52:12] | <paul121[m]> | https://github.com/mstenta/farm_profile_hylo/blob/d46cc91b79ff91ec4120c0... |
[17:53:35] | <paul121[m]> | the profile modules are a good example - notice the composer `name` starts with the repo org name, not `drupal/*` |
[17:53:41] | <paul121[m]> | * the profile modules are a good example - notice the composer `name` starts with the repo org name, not `drupal/*` |
[17:53:41] | <paul121[m]> | https://github.com/mstenta/farm_profile_hylo/blob/d46cc91b79ff91ec4120c0... |
[17:56:40] | <FarmerEd[m]> | That's a much more detailed response than I was expecting Paul, thanks very much I'll have a look into it properly when I'm back at my computer. |
[17:57:16] | <paul121[m]> | it was an easy copy/paste :-) |
[17:59:35] | <FarmerEd[m]> | That maybe so but it will save me some searching and head scratching. |
[18:04:20] | <paul121[m]> | Also my `farm_contrib_template` repo: https://github.com/paul121/farm_contrib_template |
[18:04:20] | <paul121[m]> | Your question is a good example of something that should be documented there. Both using composer with the simple github repo option, as well as putting on Drupal.org. Right now it is a TODO haha. |
[18:30:23] | <mstenta[m]> | Great template for reference! |
[18:30:47] | <mstenta[m]> | * ☝️Great template |