Author Topic: How to develop offline?  (Read 2139 times)

Offline D.Rich99

  • Semi-Newbie
  • *
  • Posts: 17
How to develop offline?
« on: July 22, 2019, 02:41:14 PM »

Can someone please explain how to install and develop a forum offline, before then transfering it to my host to get it online.

Thank you.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 13,094
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • What's Ur Beef
Re: How to develop offline?
« Reply #1 on: July 22, 2019, 02:56:57 PM »
It would be much easier to do it online. To do it offline would require a webserver installed on your computer.

Offline njtweb

  • Sophist Member
  • *****
  • Posts: 1,114
Re: How to develop offline?
« Reply #2 on: July 22, 2019, 03:05:07 PM »
Do it online. Keep the forum in maintenance mode until complete and ready for production.

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 3,330
    • sbulen on GitHub
Re: How to develop offline?
« Reply #3 on: July 22, 2019, 03:36:18 PM »
This is a very big topic... 

At a very high level, you will need to:
 - Install & configure a web server (like Apache)
 - Install & configure a DB server (like MySQL)
 - Install the forum software
 - Develop away!
 - Optional - Install & configure something for your source code control

Each of these steps has a fairly steep learning curve. 

There are tools out there that make it easier.   E.g., both XAMPP & EasyPHP offer "all in one" downloads and installs that bring up apache & mysql.

The main benefit of developing & testing locally is the ease of debugging, & has the added benefit of not struggling with any limitations your host may inflict... 

I did the same thing back in late 2016.  I had a #of issues with my forum and wanted to try fixes on a local test server instead of my live site.  I now use EasyPHP (Apache & MySQL), Eclipse (php Debugging), Notepad++ (for editing) and git/Github (to contribute to SMF2.1).  I made local copies of my forum via backup & restore, so now I can flail away safely...

And yes, the learning curve can be frustrating... 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 20,385
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • Aleksi Kilpinen
Re: How to develop offline?
« Reply #4 on: July 22, 2019, 03:42:14 PM »
Just to add my 2 cents in to this.
Eventually, you will need to learn to work with your server and a live forum anyway, so as a beginner I think it is easier to skip learning tools you don't really need yet,
and head straight to a live environment. Just, keep backups, make notes, and don't rush it.
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline D.Rich99

  • Semi-Newbie
  • *
  • Posts: 17
Re: How to develop offline?
« Reply #5 on: July 22, 2019, 04:19:42 PM »
Ok, for the time being I will use a free host for working on the basic setup and mods.

Thank you very much for your replies.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: How to develop offline?
« Reply #6 on: July 22, 2019, 05:13:47 PM »
I've always found that working offline is most useful if you're going to do a lot of code-related work (e.g. developing your own mods) but if you're installing a forum and adding mods, doing it online is usually just fine. I did exactly that over the weekend, set up a specialised forum, dropped in the one mod I cared about, job done, never set anything up on my local.

The other problem with developing offline is the actual act of moving it online - every developer will be familiar with the symptom "well, it works on my machine..." where there are differences between what is on your machine and what is on the server (and it might be configuration, it might be data).
No good deed goes unpunished
All helpful urges should be circumvented