Nitro Client is a frontend UI written in Angular for rendering nitro-renderer. https://stuxcraft.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Bill e4c0c8445c Update default config 4 months ago
.gitlab Update Pull.md 1 year ago
.vscode Update dependencies 11 months ago
src Update default config 4 months ago
.browserslistrc Moreee fixes 7 months ago
.editorconfig Update .editorconfig 1 year ago
.env.example More changes 6 months ago
.eslintrc.json Add web worker 1 year ago
.gitignore Add .env 6 months ago
.gitlab-ci.yml Another CI update 6 months ago
.prettierignore Updates 7 months ago
LICENSE First commit 1 year ago
README.md Update README.md 6 months ago
angular.json Add .env 6 months ago
package-lock.json Update dependencies 4 months ago
package.json Update dependencies 4 months ago
post-install.js Updates 7 months ago
tsconfig.app.json fix tsconfig to include index.ts in main directory 11 months ago
tsconfig.json Update version 7 months ago
tsconfig.worker.json chat fixes 1 year ago
yarn.lock Update dependencies 4 months ago

README.md

Nitro Client

Nitro Client is a frontend UI written in Angular for rendering nitro-renderer

Prerequisites

  • You must have git installed
  • You must have NodeJS >= 16.13 installed
  • We recommend you use Yarn over npm
    • npm i yarn -g
  • Install the Angular CLI globally
    • yarn global add @angular/cli

Installation

  • First you should open terminal and navigate to the folder where you want to clone Nitro
  • Clone Nitro
    • git clone https://git.krews.org/nitro/nitro-client.git
  • Install the dependencies
    • yarn install
    • This may take some time, please be patient
  • Rename a few files
    • Rename .env.example to .env
    • Rename src/renderer-config.json.example to src/renderer-config.json
    • Rename src/ui-config.json.example to src/ui-config.json
  • Set your links
    • Open .env & update the values
      • The point of this file is to make it easier for deployment
      • These keys will be injected into your index.html
    • Open src/renderer-config.json
      • You may not need to change any values here unless you have customized your assets
      • socket.url, asset.url, image.library.url, & hof.furni.url are empty because these values are being pulled from .env. Updating the values here will override .env.
    • Open src/ui-config.json
      • The only value that probably needs updating here is url.prefix

Usage

Development

Run Nitro in development mode when you are editing the files, this way you can see the changes in your browser instantly

yarn start

Production

To build a production version of Nitro just run the following command

yarn build-prod
  • A dist folder will be generated, these are the files that must be uploaded to your webserver
  • Consult your CMS documentation for compatibility with Nitro and how to add the production files

NitroConfig

  • This is a required global variable in the index.html file
  • This variable contains configuration options that are used when Nitro is bootstrapped
  • See the default index.html file for the default options
  • Any keys added here will override those keys in your configuration files