/GNSServer

The WebSocket and HTTP server for Global Natural Stones.

Primary LanguageJavaScript

Global Natural Stones Server

Overview

This repository contains the server I created in a partnership with the company Global Natural Stones, along with the kiosk application my teammate, Jeremey Oosterbaan, created.

Dependencies

Installing

First clone the repository (with either ssh or https, the command uses ssh) and install the dependencies

git clone git@github.com:Bigwolfden/techprepserver.git
cd techprepserver
yarn

Development

The server uses TypeScript and ts-node for development. Run the development server with

yarn dev

Client

There is a WebSocket Client included for testing purposes. To run the client, use

yarn client

Note: There is no script for using the client in production because this client is for testing development only.

Production

Transpile the TypeScript with

yarn build

and then run the server

yarn start