DEV Community

Vallabha Here
Vallabha Here

Posted on

Introducing My 2D Metaverse Project!

Hi Everyone,
I’m Eswar, and today I want to share one of my biggest personal projects: a 2D Metaverse clone Backend that I built!
Here’s a simplified overview of how it works:

What is this project about?
This project allows users to create their own spaces inside a virtual world, using existing maps. Once a user selects a map, it gets copied into their personal space, and they become the "admin" of that space. From there, they can start interacting with the environment and with other users.

Key Features of the Project:
User Authentication:
To ensure that only the right people can access certain areas, I used a system called JWT (JSON Web Tokens) for user login and secure access.

Protected Areas:
Some parts of the project are protected, meaning users need permission to access them. I created special routes (or pathways) to ensure only authorized users can get in.

Real-Time Communication:
One of the coolest features is that users can talk to each other and interact in real-time. The project uses "Socket Programming" to make this happen—think of it like a live chat feature that lets people communicate instantly.

Creating & Managing Spaces:
Users can create their own personal space by choosing a map from the options available. Once they do that, they can modify their space and invite others to join. They can be the admin of their space and control what happens there.

How Does It Work Behind the Scenes?
In terms of technology, I used:

Go Lang to create the backend of the project, which is responsible for handling all the requests and communication between users.
JWT for keeping the system secure.
Socket Programming for real-time communication.
If you’re curious about how the database works, I’ve also uploaded a visual diagram of the database structure on my GitHub and below also. You can check it out if you're interested in the technical details!

GITHUB

https://github.com/VallabhaE/2dMetaVerse

Image description

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay