/mmo_server_with_micronaut

Hobby project to create mmo server using Java Micronaut with JWT Auth, postgres and mongoDB support

Primary LanguageJava

MMO Server implementation (work in progress)

Currently working on:

  • Synchronising motion of character in-game.

Documentation within blog:

Each of the posts contains a video overview.

Character creation examples:

Logging into the game:

Inventory Implementation

Base components, JWT no longer in use, in favor of using Cognito or alternatives

This project branches from the Micronaut template found here: https://github.com/yazoo321/micronaut_template

To see where components are configured, see mini tutorial on youtube: https://www.youtube.com/watch?v=PF_Bg6CgMts&t=16s

JWT Authentication described here on YouTube tutorial here: https://www.youtube.com/watch?v=acAFcDWuxhI&t=8s

Dependencies

In this project we rely on Docker, you can download it here: https://docs.docker.com/desktop/windows/install/

Micronaut 2.4.1 Documentation


Feature http-client documentation

Getting started

In order to build the project run: ./gradlew build

In order to remove the docker container and its database, run docker rm -f -v <container_name>

This project is a base template for getting started with micronaut + postgres + jooq + flyway + lombok.

It contains a very simple migration file (resources/db/postgres/V1__create_user_table.sql) to create a base users table and an entry with a user. Modify this based on your requirements.