Prerequisites to run this project:
docker pull zaydalzein/svelte-game-server
look at .env.example for an example
chmod +x deploy.sh
./deploy.sh
- localhost:3000/admin
- Click on the "+" button to add a new game and fill in the details
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.
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