4 How to Build
Nicolas Constant edited this page 2023-08-06 14:42:19 -04:00

How to build and run Sengi

Prerequisites

Node.js

You will need Node.js v10 installed (due to Angular 7 incompatibilities, don't use v11 or higher)

If you need multiple node.js versions on your computer, you can use the nvm software.

Angular CLI

If you never installed Angular CLI, run:

npm install @angular/cli@7.3.0 --global

Restore packages

In the root folder, run:

npm install

Build and run the project

Here are the most common commands:

Run angular

npm start

Build angular for publication

npm run build

After the build process, you'll find a set of files (html, css, js, ...) in the /dist repository. You can copy all the content of it to any web server to serve Sengi.

Run unit tests

npm test