-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,38 @@ | ||
# FormBuilderDemo | ||
|
||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.20. | ||
JSON-based Form builder Angular application. Uses [ng-zorro-antd](https://ng.ant.design/) as a UI component library. | ||
|
||
## Development server | ||
## Features | ||
|
||
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. | ||
Create a new form or edit one of the pre-built ones in the Form Builder UI which allows to: | ||
- Add or remove fields | ||
- Change field types (short/long text, date, number, checkbox, email, password) | ||
- Edit the form and field names | ||
- Edit field placeholders for the input types | ||
- Mark fields as required | ||
- Set the number of columns | ||
|
||
## Build | ||
## Standard commands | ||
### Install dependencies | ||
|
||
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. | ||
Run `npm i` to fetch node_modules. | ||
|
||
## Running unit tests | ||
### Start development server | ||
|
||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
Run `npm start` for a dev server. | ||
Navigate to `http://localhost:4200/`. | ||
The app will automatically reload if you change any of the source files. | ||
|
||
### Build | ||
|
||
Run `npm run build` to build the project. | ||
The build artifacts will be stored in the `dist/` directory. | ||
|
||
### Testing | ||
|
||
- Run `npm test` to execute the unit tests via [Karma](https://karma-runner.github.io) | ||
- Run `npm run e2e` to execute the end-to-end tests via [Cypress](https://www.cypress.io) | ||
|
||
### Code style | ||
|
||
Run `npm run lint` to analyze the code by [ESLint](https://eslint.org/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters