Skip to content

ThibautBremand/2D-MMORPG-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D-MMORPG-server

The server for 2D-MMORPG, written in Golang.
For the client, please see https://github.com/ThibautBremand/2D-MMORPG-client
For the characters and gamemaps creation interfaces, please see https://github.com/ThibautBremand/2D-MMORPG-character-creator

This server handles communications from users, and interacts with the databases accordingly. It uses Redis and PostgreSQL.

Demo!

Go to http://51.91.158.243:8080/ and start playing using these usernames:

  • demo
  • demo2

You can also create new characters using the following page: http://51.91.158.243:8080/character

Local installation

  • Clone the repo
  • Launch a local Redis instance (default port will be 6379)
    • Docker (recommended): docker run --name some-redis -p 6379:6379 -d redis
    • Ubuntu: sudo service redis-server start
  • Launch a local PostgreSQL instance
    • Docker (recommended): See Wiki page
    • Ubuntu: sudo service postgresql start
  • Create a .env file based on the .env.sample model, and fill the values.
  • Build: go build
  • Run: go run main.go
  • Make sure you have data in your Character and Gamemap PostgreSQL tables.

Please follow the steps detailed in the client's Readme file in order to correctly deploy the client.
Please also follow the steps in the characters and gamemaps creation interfaces' Readme in order to correctly deploy them as well.

2k20 Reborn!

This project is a new version of this one made in PHP with Symfony, in 2015: https://github.com/ThibautBremand/WebApp_WebMMORPG-Server

The previous project is now deprecated.