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
Leon Erasmus
4,217 PointsHow do I test website on phones/tablet during development?
Hi,
I was wondering if anyone has a simple solution for testing a locally built website (Plain Html/css/javascript) on physical devices before the site goes live?
Thanks
2 Answers
Chyno Deluxe
16,936 PointsI'm currently using a gulp environment with broswer-sync that allows me to view my development on multiply devices. You don't need gulp to use browser-sync but you do need node.js
Moses Gangipogu
3,772 Pointsif you have install LAMP or WAMP you can just your ip address and access using that if address from you device i should work example : http://MyPublicIpHere/mypage.html this should work for getting the IP use (ifconfig/ipconfig) (it should work with w/lamp but i am not sure, i have never tried it)
but rather i would suggest doing it the right way, try doing TDD(test driven development) after every small change in my code you must not retest the whole project manually it must automated
means i am doing a small change in my css and i need the test it then i would write some automated or unit test cases to test it across platform every time and ensure the integrity on my code.
hope that helps, moses