Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Alex Oates
Alex Oates
7,171 Points

Setting up a local test server - Q's

I would like to set up a testing server on my macbook that is able to give the full experience of my websites on multiple devices.

I've heard about simplehttp with python, or something with node.js.

Are there any videos on how to do this on treehouse?

Also,

Would it be possible to set this up to work without WIFI/internet connection?

1 Answer

Hi there Nicole.

To answer your question you can sure use node.js if you want. But it needs a bit getting used to.

The easiest way to achieve what your asking is with MAMP.

It's free to use, fast to install and easy to use.

You could also take the hard road and use the apache server that comes with OSX preinstalled. But then you have to install MySql or any other Database software and you'll have to compile your own PHP from source. (You'll need the command line tools for compiling and installing from source)

If you think you can handle this I can write together a quick walkthrough for the hard way.

Easiest and fastest is MAMP . And easy to control and it's more than enough for local development.

Because it's a local server you can access you site even when not connected to the internet.

For further questions... just ask away.

I hope I helped you a tiny bit.

Happy coding.

n_WEB_d