RobertoMolina Posted February 3, 2017 Share Posted February 3, 2017 Hi, i am learnig to use phaser and following you tutorial, but tomcat does not run the hellophaser page. It returns me a http://404 error. What can i do?? Link to comment Share on other sites More sharing options...
aarroyoc Posted February 3, 2017 Share Posted February 3, 2017 Hi @RobertoMolina! In order to use Phaser you don't need to use a Java server like Tomcat. Just an static HTTP server. Most popular ones are Apache and Nginx. You can even use Python's builtin http server. python -m SimpleHTTPServer Phaser games can be hosted even on free hosting sites if you want. I've noticed you speak Spanish. Take a look at: Gamedev Hispano , they can help you in Spanish with Phaser. Link to comment Share on other sites More sharing options...
PixelProgrammer Posted February 5, 2017 Share Posted February 5, 2017 @aarroyoc said it best. You need a simple HTTP server. I'd suggest Mongoose which is a lightweight server. If you're using Webstorm as an IDE you can use the inbuilt server. Link to comment Share on other sites More sharing options...
scheffgames Posted February 5, 2017 Share Posted February 5, 2017 I'm using Wamp because it's very easy to install and use - you're talking about a local server, right? Link to comment Share on other sites More sharing options...
Tom Atom Posted February 5, 2017 Share Posted February 5, 2017 If you have node.js installed, you can use "http-server" (https://www.npmjs.com/package/http-server) - to install it, write: npm install http-server -g - to run it, write: http-server Nothing more is needed. mattstyles 1 Link to comment Share on other sites More sharing options...
mattstyles Posted February 6, 2017 Share Posted February 6, 2017 There's nothing wrong with Tomcat, @RobertoMolina it just sounds like you have files in the wrong location, you could do that with any of the other servers mentioned here. Having backed the big Java beast, I would say to follow TomAtom's advice and use Node (unless you're from a different background and comfortable with other tools, which you're not given the problem), we're JSers so using a JS back-end makes sense as thats now possible. Not that it really matters for firing up a server though, there are loads of projects that will spin up a server (I even have my own called hench haha ) in your current directory, they all require a bit of knowledge of the command line though, only a little bit, if you're uncomfortable on the command line then spinning up a server sounds like a nice easy way to get started (you need to know it!). Link to comment Share on other sites More sharing options...
Recommended Posts