#1
Hi folks. I have Trongate set up and working with nginx and have downloaded the blog.zip module, but I can't find any clear and simple information how to manually add the contents of the blog.zip into the Trongate framework. No doubt this info is buried somewhere within the extensive docs, but I don't have the patience to RT entire FM just to locate the one paragraph that hopefully explains how to add the module contents into the right areas of the Trongate folder structure, and then also how to enable it to show up.

Would anyone care to share that magical one paragraph, please?
#2
Hello,
Please use the search button and search for 'blog'
This issue has been raised before.
Dan
#3
Hi Mark,

As Dan has mentioned, the Blog module has been raised as an issue when installing via the desktop app as it is in fact a site not just a module.

A simple guide would be to create a new app with the desktop app which will create a blank database of the same name as your app - let's call it 'my_blog'. You will need to create a new module with the Desktop App or install one from the Module Market to initialise the Trongate tables in the database - I recommend the 'Simple Members' module. To see if this has worked for you - navigate to: once you have installed it.

1. Now download and unzip the 'blog' module/ app into your new app - 'my_blog'. (note the pictures folder in the zip contains an SQL file, just move that into the pictures module directory along with the 'blog.sql' you can see in the root of the zip file)

2. Now open your browser to: http://localhost/my_blog/pictures
You should now see 'SQL FILES FOUND' - click on 'VIEW SQL' on each and follow the prompts to create the tables needed for the blog site

3. Once complete, navigate to:

to see the blog

4. To get to the Admin panel, navigate to:


5. To make things a little easier to navigate I suggest you open the dynamic_nav.php found in \templates\views\partials\admin and add these lines


Please be aware there are issues with repeating dropdowns options, which you can find solutions by searching the Help-Bar (from memory it was a fix in the 'module_relations' module)

Don't forget to Star Trongate on GitHub >


Cheers
Si
#4
Thank you Si, I appreciate your input. Let me get this straight, so there is no way to initialise the mysql tables without using the desktop app? I have no intention of using that app as it's horrible on a HiDPI screen on linux and entirely useless on a remote server. Relying on the desktop app means I cannot automate anything via scripts. If a shell script does not exist to install a module, and I can't ever write one because it's not encouraged or supported, then I can never integrate Trongate into my normal hosting workflow.

Laravel might be bloated and slow, but it does not suffer from lack of "normal" shell tools to install and manage all the assets in all the situations where it may be needed.
#5
Hello Mark,

The solution I posted above is the most simple and robust, but like anything to do with web development not the only solution.

Let me now be factual and not so presumptuous as you are being above. You can use Trongate entirely without using the Desktop App.

As for you refusing to use it on Linux is bewildering to me, as I have no issues using it on my 4k monitors and have also configured the Desktop app to directly create apps to my production server but this is not the norm. You would be encouraged to develop locally, then publish your apps to your server - not vice versa. Using the command prompt with Trongate is possible, and you did get one thing right - Laravel IS a bloated and slow piece of SHITE. So over engineered and obviously made for simple minded fools who would rather copy the Node world and bloat their apps further with thousands of lines of code from anonymous packagist authors who can't wait to introduce breaking changes with their rewrite culture - so if you would rather wallow in that world of pain then go right ahead. Me - I'm team Trongate all the way - where stability matters.

So just for you, here is the Bullshite way of installing Trongate via the command line:
1. Open a terminal and cd to your web folder, have Git installed too
2. This command will clone Trongate and create a directory called markc, which will be the app name.

3. Open your app in VSCode or Vim or Nano or whatever makes you feel good:

4. define your database name

5. Go into phpMyAdmin or a MySQL prompt - since you LOVE the command line so much and create a database called 'markc'

6. Download the 'Simple Blog' module from the fantastic 'Module Market' and unzip the 'module' and 'public' folders to the 'markc' app - I assume you know how to do that via the command prompt too, so I won't go into that here.
7. Copy both SQL files to the 'pictures' module as mentioned above
8. navigate your browser to http://localhost/markc/pictures and follow the wonderful module import wizard to create the needed database tables - as above

The Simple Blog app should now be working

As you can see all achieved without using the dreaded Desktop App
#6
Hello Marc,
What you said, "Let me get this straight, so there is no way to initialise the mysql tables without using the desktop app?"
You can download the module as a zip file from the Module Market and install it Manually.
When you unzip it, you will find the modules and sql files. Just open a sql file in a text app, then copy it and paste into phpMyAdmin.
I work on a Mac so I do not know what your screen looks like.
Dan