Coder Social home page Coder Social logo

pokemmo-pokerpg's Introduction

How to run a server locally

First you have to install:

Note:

  • In the default settings, you need to create a folder for mongo at C:\data\db, before starting the bin\mongodb.exe (in Windows)
  • When you run nginx in Windows it'll just open a command prompt and close, but it's working. Open "http://localhost/" in your browser to confirm

Start up nginx and mongodb.

Copy (don't move, copy) the contents from the /site/ dir to the html folder in nginx.

The lastest commit has the game engine configured to connect to localhost, so you shouldn't have to change anything regarding the server ip, but if for some reason in the future this changes, you have to edit IPs in the /site/js/main.out.js file to point to the correct IP address.

Now start up the registration server in the /regserver/regserver.node.js file, just run "node" from the command line with that file as the argument.

Start the game server in the /server/server.out.node.js

Note that the server needs the folder "site" in the parent directory of it. So when you had copied the site files to nginx, make sure you didn't delete them from their original location.

You only need the registration server during the registration process, it will create the needed database structures for you. Now go to http://localhost/play.html in your browser and create an account.

Everything should be up and running. Open multiple browser windows and login into other accounts to test multiplayer features.

pokemmo-pokerpg's People

Contributors

matheus28 avatar phebr3bre4 avatar

Watchers

Joan Janzelly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.