Installing Ghost on a Local Mac Server

What is Ghost?

Ghost is a new blogging platform that has recently been released. It's a beautiful, minimally designed platform dedicated to the written word. Initially a Kickstarter project, Ghost is now in the wild and available for download. Ghost exists currently as a downloadable set of files that can be uploaded to a web server or tested on a local server, with an actual hosted service similar to Wordpress.com coming soon. 

This tutorial will take you through installing Ghost on a local Mac server. Even if you've never worked with local or remote servers, or even if you've never touched a line of code or .html file in your life, you'll be able to get Ghost up and running on your Mac in just a matter of minutes. Familiarity with the Terminal application is ideal, but even without that you'll be ok.

 

What You'll Need

To start, you'll need these items:

 

 

  1. Visit nodejs.org and download NodeJS

  2. Install NodeJS package

  3. Open the Terminal application, located in Applications Utilities Terminal

  4. You’ll see the name of your computer and the $ sign. Type “echo $PATH” and press the Enter key

  5. If NodeJS is installed correctly, a string of text with the file path “usr/local/bin” located in the file path. If you do not see this, start at step 2 and try again.

  6. Visit ghost.org, create an account if needed, and download the Ghost source code.

  7. Locate the folder titled “ghost-0” or just “ghost”. This is the Ghost source code.

  8. Open up Terminal again, and create a new tab by clicking Shell  New Tab Basic

  9. Once the tab is opened, drag the Ghost folder onto the tab. You should now see Computer Name:Ghost (or whatever your folder is named) in the command line, followed by your username and the $ sign.

  10. Once your terminal is ready to go, type “npm install --production” and click the Enter key. You should see the terminal begin outputting several lines of information. NodeJS and Ghost are working together to set up Ghost on your computer.

  11. Once the Terminal stops at Computer Name:Ghost yourname$, type in “npm start”. This starts Ghost.

  12. In a browser, type in 127.0.0.1:2368 to see your Ghost blog.

  13. Change the URL to 127.0.0.1:2368/ghost and create your account to login to Ghost.

We hope this tutorial helped you understand how to initially get started with Ghost, and also a little bit about using the Terminal and command line. These tools are incredibly valuable to programmers and developers and a thorough understanding of them will get you a long way when delving into the deep, dark corners of the programming and development world.