Svelte Game Server

Quick Start

Prerequisites to run this project:

Step 1 - Create MariaDB Database and Make Tables

Step 2 - Clone Repo

docker pull zaydalzein/svelte-game-server

Step 3 - Create .env File

look at .env.example for an example

Step 4 - Run Deploy Script

chmod +x deploy.sh
./deploy.sh

Step 5 - Add Games To The Server

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Building

To create a production version of your app (without docker):

npm run build

With docker build:

docker build -t zaydalzein/svelte-game-server --platform=linux/amd64 .

Run with docker-compose (recommended):

docker compose up -d --build

Top categories

Loading Svelte Themes