Here are the repositories used in the project:
- Moralar App for end user - https://github.com/EL-BID/moralar-appusuario-flutter
- Morar App for Field Agent (TTS) - https://github.com/EL-BID/moralar-apptts-flutter
- Moralar Web App for Admins, Field Agents and Public managers - https://github.com/EL-BID/moralar-admin
- Web Server for All applications - https://github.com/EL-BID/moralar-api
This project was generated with Angular CLI version 10.2.0.
- Node 16.14
- Google Maps API Key.
In the root directory create .env file with at least these variables:
showDefaultLogin: true,
production: false,
GOOGLE_MAPS_API_KEY: {api-key},
baseUrl: {url-api},
assetPath: '/content/upload/'
The folder assets/scripts includes a file setEnv.ts that reads the env variables and set them up during the build process.
check your nvm list and take a version 14.17.2 of your nodes list
run npm install to install all packages. After this step you are free to use other package management tools like Yarn, but keep in mind that if you need to install anything, it has to be with NPM.
Run ng serve or npm run start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Change baseUrl variable to match your server on src/environments/environment.dev.ts.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run npm run build to build the project in mode production.
Run npm run test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
1.need before:
- npm i -g @azure/static-web-apps-cli@1.1.10
- swith from 14.17.2 to 21.0.0 in the nvm list
- to deploy
swa deploy -n {swa-app-name} ./dist/app -R {resource-group} --deployment-token "{implementation-token}"To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
Copyright © [2025]. Inter-American Development Bank ("IDB"). Authorized Use.
The procedures and results obtained based on the execution of this software are those programmed by the developers and do not necessarily reflect the views of the IDB, its Board of Executive Directors or the countries it represents.
Copyright © [2025]. Banco Interamericano de Desarrollo ("BID"). Uso Autorizado.
Los procedimientos y resultados obtenidos con la ejecución de este software son los programados por los desarrolladores y no reflejan necesariamente las opiniones del BID, su Directorio Ejecutivo ni los países que representa.
Copyright © [2025]. Inter-American Development Bank ("IDB"). The Support and Usage Documentation is licensed under the Creative Commons License CC-BY 4.0 license. The opinions expressed in the Support and Usage Documentation are those of its authors and do not necessarily reflect the opinions of the IDB, its Board of Executive Directors, or the countries it represents.
Copyright © [2025]. Banco Interamericano de Desarrollo (BID). La Documentación de Soporte y Uso está licenciada bajo la licencia Creative Commons CC-BY 4.0. Las opiniones expresadas en la Documentación de Soporte y Uso son las de sus autores y no reflejan necesariamente las opiniones del BID, su Directorio Ejecutivo ni los países que representa.