Skip to content
Games For Girls edited this page Jun 10, 2019 · 1 revision

Running WTF?! Adventure

Running the server is fairly straightforward, for the most part. If you encounter any issues, make sure you use the alternative solution.

Step 1 - Install the dependencies

In the command line run: npm install

Step 2 - Setting the config files

Convert the server configuration for local usage, go in both src/server/config.json and src/client/config.json and update the ports and settings to meet your needs.

Step 3 - Make sure MySQL is up and running

If you are running this project locally then you will need something like XAMP or MAMP that you can turn on and use to run MySQL locally.

If you are running this project on a server then you will need to make sure you have a mysqld instance running.

Make sure you have the proper config for the MySQL server in your src/server/config.json file, often times connection issues with WTFServer will be due to connection or authentication errors when trying to connect to your MySQL database.

Step 4 - Run the NodeJS server

In the command line type: npm run wtfserver

Step 5 - Run the HTML5 Client Webpack

Open another terminal and then type: npm start

Step 6 - View in Browser

Now open your browser and navigate to http://{ip}:{port}/ as defined in your configuration files. Typically this will be http://localhost:3000 if you use the default webpack and client configuration settings provided.