Reputation: 43
I'm trying to fork a project from Github to play around with it a bit, but I can't figure out how to run it on a local server.
Here is the github in question: https://github.com/penumbragames/tankanarchy
I downloaded the code, installed node.js and ran "node server.js". Now I can see it in my browser at localhost:5000 but for some reason there is no CSS and the JS isn't running properly either.
Specifically the gives the following errors:
"Refused to apply style from "..." because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
GET client.bundle.js net::ERR_ABORTED 404 (not found)
I've been trying to figure out how to properly run this for a while and am fairly stuck. How do I host/run this?
Here is what it's supposed to look like according to the dev: https://tankanarchy.herokuapp.com/
Upvotes: 0
Views: 51
Reputation: 6313
Here a short answer after the comments reveled the problem.
After you download the code (look into git and how to clone repositories if you feel like contributing to the code) and you cd into the extracted folder make sure you run npm install
to install all dependencies. It looks like this repo also have a postinstall hook so after the install it should run webpack to create your bundle (which you are missing now).
After all that run npm start
and that should start the app that you then can see via the browser as you have already.
This should fix your missing assets.
Upvotes: 2