Matrix/Webserver
2024-02-16 07:21:03 +01:00
..
src send data url to server 2024-02-16 07:21:03 +01:00
static /static README 2023-12-01 07:34:12 +01:00
.env.example api server access in env 2023-06-18 18:44:28 +02:00
.eslintignore initialize sveltekit webserver 2023-11-23 13:22:59 +01:00
.eslintrc.cjs initialize sveltekit webserver 2023-11-23 13:22:59 +01:00
.gitignore initialize sveltekit webserver 2023-11-23 13:22:59 +01:00
.npmrc initialize sveltekit webserver 2023-11-23 13:22:59 +01:00
.prettierignore initialize sveltekit webserver 2023-11-23 13:22:59 +01:00
.prettierrc initialize sveltekit webserver 2023-11-23 13:22:59 +01:00
package-lock.json update packages 2024-02-14 07:39:40 +01:00
package.json installed updates 2023-06-18 18:24:13 +02:00
playwright.config.ts moved and renamed playwright tests 2023-11-23 13:24:38 +01:00
postcss.config.js installed tailwindcss 2023-11-24 07:07:09 +01:00
README.md README explaination for .env 2024-01-11 13:18:48 +01:00
svelte.config.js node as build config 2023-12-01 08:14:08 +01:00
tailwind.config.js relocating into library files, overlay and hover effect and scaling 2023-11-30 08:37:31 +01:00
tsconfig.json better universal LSP setup 2023-06-18 18:25:00 +02:00
vite.config.ts moved and renamed playwright tests 2023-11-23 13:24:38 +01:00

About

This is a Webserver to host a Website on the same machine as the Matrix API. This allows users to access its functions and developers to implement new features and interfaces such as games as demos.

Installation

  1. Download repository with git clone https://gitlab1.ptb.de/waltem01/Matrix.git
  2. Navigate to the Webserver directory with cd Webserver/
  3. Install dependencies with npm install

Development

npm run dev

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

Building

To create a production version of the app:

npm run build

You can preview the production build with npm run preview.

Running

  1. Navigate into the production environment with cd build/
  2. Install dependencies with npm ci --omit dev
  3. Start the production server with node .

Note

If the Matrix API is executed on a separate device, although this has been explicitly advised against, you will need to point the Webserver to it by setting the environment variables shown in .env.example.