- Using Colyseus for the server
- NextJS for the client
This project is divided into two primary sections:
client
: This is the frontend of the application powered by Next.js.server
: This is the backend of the application handling API and data-related operations.
Additionally, there's a types
folder which contains shared types and utilities that both the client
and server
might need access to.
Before starting, ensure you have the following installed:
-
Clone the Repository
Use the following command to clone the repository:
git clone https://github.com/IgorBayerl/multiplayer-template.git
-
Install Dependencies
After cloning, navigate to the project directory and install the dependencies using pnpm:
pnpm install
-
Start the Development Servers
To start the development servers:
-
For both
client
andserver
:pnpm dev
-
For only the
server
:pnpm dev-server
-
For only the
client
:pnpm dev-client
-
Happy coding!