Matrix/Webserver
2024-02-28 11:39:37 +01:00
..
src implement clock animation 2024-02-28 09:35:40 +01:00
static /static README 2023-12-01 07:34:12 +01:00
.env.example configuring matrix dimensions 2024-02-16 09:15:32 +01: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 use proxy in global dispatcher 2024-02-22 10:35:06 +01:00
package.json use proxy in global dispatcher 2024-02-22 10:35:06 +01: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 remove unused proxy 2024-02-28 11:39:37 +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.