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.