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 trialJoo Gamal
839 PointsWhy we need SimpleHTTPServer?
Why i need it when i can use the relative path to do it in my own computer why then i need to use this simple server to test my website in my own computer
2 Answers
jenko
8,562 PointsStrictly speaking you donβt need a server like WAMP or XAMP to host a purely HTML website.
But If you want to go onto designing websites that have server side requirements like PHP and/or a database youβll need the server to support it.
Itβs also a good thing to learn how to setup a server so you can get a better idea how hosting works online.
Torben Korb
Front End Web Development Techdegree Graduate 91,433 PointsAlso if there are AJAX requests from your website a server is required and you cannot make these requests from a local file system address.