Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netgrif/nae-frontend-application-starter
Frontend Starter for Netgrif Application Engine
https://github.com/netgrif/nae-frontend-application-starter
angular netgrif petriflow typescript
Last synced: about 2 months ago
JSON representation
Frontend Starter for Netgrif Application Engine
- Host: GitHub
- URL: https://github.com/netgrif/nae-frontend-application-starter
- Owner: netgrif
- Created: 2022-02-11T12:06:45.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T20:20:16.000Z (12 months ago)
- Last Synced: 2024-04-16T10:59:11.194Z (9 months ago)
- Topics: angular, netgrif, petriflow, typescript
- Language: TypeScript
- Homepage:
- Size: 188 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Netgrif Application Engine Frontend Starter
This is a frontend starter project for [Netgrif Application Engine](https://github.com/netgrif/components) to display
your NAE based application, manage your processes, cases and tasks.It helps if you are familiar with Angular Framework, Typescript, CSS and HTML, but it is not necessary as this starter
project already contains some predefined views and navigation items, which are suitable for interacting with your
processes.# Requirements
Frontend application has some requirements for runtime environment. The following table is summary of requirements to
build, run and use the engine.| Name | Version | Description | Recommendation |
|------|---------|-------------|----------------|
| [Angular CLI](https://angular.io) | 13.+ | TypeScript-based web application framework | ```npm i -g @angular/[email protected]"``` |
| [NodeJs](https://nodejs.org/en/) | 12.20+ OR 14.15+ OR 16.10.+ | JavaScript runtime built on Chrome's V8 JavaScript engine | [NodeJs 14.19.3](https://nodejs.org/download/release/v14.19.3/) |
| [NPM](https://www.npmjs.com) | 6.5.+ OR 7.4.+ | Node Package Manager | Compatible version comes with NodeJs |# Installation
This project can be used as a base to your NAE application. Before you start coding please consider doing following
steps to personalize project:- In package.json, change the value of ```name``` attribute to name of your application
As it is an Angular project, there is a file called ```package.json``` in root folder, which contains information about
project and application, script definitions, dependencies and their versions.First step is to install the dependencies using the NPM package manager. Using terminal, navigate to the root folder (
where the ```package.json``` is saved) and run ```npm install --legacy-peer-deps``` command. This will scan the ```package.json``` file and
install the dependencies from NPM repositories.The second step is to build the application using Angular CLI (Command Line Interface). This can be done using terminal
when you are in the root folder of the project running ```ng build``` command. This will create a ```dist``` folder,
that contains the build of application. This build then can be moved to a web server (e.g. Apache or Nginx).To run the application locally you can use ```ng serve``` command, that runs an embedded server and serves the
application to localhost. Port of the application can be changed using ```--port``` option. The default port is 4200.## NAE.json
The frontend application consist of side menu and a views for the application. There are some predefined views for
processes, cases, tasks and user management. Further views can be added using Angular schematics.To configure NAE application more easily the libraries use file ```nae.json``` that is placed in root of the project.
```nae.json``` defines global application configuration like urls to backend resources, services' configurations,
routing and views.You can find [minimal nae.json configuration here](docs/configuration/nae-minimal.json).
For easier startup
clone [template project for NAE frontend application](https://github.com/netgrif/nae-frontend-starter)