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

General Discussion

Mike Capewell
Mike Capewell
4,501 Points

PC version or subsitute for Anvil for mac

Hi Guys,

Quick question I've just discovered Anvil for mac and think its fantastic and really helpful but my question is is their a PC equivalent?

Cheers

Mike

6 Answers

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi Mike Capewell,

That's a tough one! I think Anvil is so awesome because of how unique it is... I don't think you're likely to find anything that replicates this functionality perfectly on a PC.

What are you trying to do exactly?

Mike Capewell
Mike Capewell
4,501 Points

Hi Nick,

Basically I'm developing a mobile app written in html, css and javascript in in order to run effectively (especially run effectively in some testing tools) it needs to run from a localhost rather than file based URL.

This is all a bit new to me as I'm more use just to designing websites you can view on a file URL then ftp up to a demo site to full test.

Any ideas?

Thanks for the reply

Mike

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Got it. There's 2 things you can try:

  • You can install a mobile simulator and try the site there. The official Android sim is cross platform. The iOS sim is OS X only, but I remember using alternative sims on a PC in the past, so you might want to Google around for the latest.
  • The best thing to do is to use a real mobile device. If you're on the same Wifi network as your development computer, you can simply type in the IP address of your dev machine into your mobile browser, and it should bright up whatever is available at localhost.

Mobile development changes pretty fast, so I'm betting there's an even better solution out there. Amit Bijlani or Ben Jakuben might know. :)

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

For Android, you can run the Android emulator as Nick mentioned, and loop back to your computer's localhost by using the IP address 10.0.2.2 in the emulator's browser.

From the Android developer documentation:

10.0.2.2    Special alias to your host loopback interface (i.e., 127.0.0.1 on your development machine)
Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

If you are simply looking to run your site from localhost then all windows machines come with IIS. Here's how you can turn it on Windows 8 or Windows 7

Mike Capewell
Mike Capewell
4,501 Points

Thanks for your help guys really appreciated.

Mike