Skip to content

mobila-dev/mobila-fe

Repository files navigation

MobilaFe

This project was generated using Angular CLI version 19.1.4.

Development server

To start a local development server, run ng serve or npm run start:

ng serve

Once the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.

Prerendering

Always test prerendering after finishing your code changes. To test a prerendering build, run npm run prerender:test:

npm run prerender:test

...
Prerendered X static routes.
Application bundle generation complete. [XXX seconds]

Output location: ...\dist\mobila-fe

This will start a local server at http://localhost:4200 which will serve the prerendered HTML files from dist/mobila-fe/browser/*. Hot reloading for prerendering is not possible.

SSR

Because Netlify could not compile src/server.ts and then the build crashed everytime, we deleted src/server.ts. This effectively means SSR is disabled.

We want to enable SSR again when we move from Netlify hosting to a VPS hosting.

See official documentation about SSR here.

Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

ng generate component component-name

For a complete list of available schematics (such as components, directives, or pipes), run:

ng generate --help

Running unit tests

To execute unit tests with the Karma test runner, use the following command:

ng test

Running end-to-end tests

For end-to-end (e2e) testing, run:

ng e2e

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.

Releases

No releases published

Packages

 
 
 

Contributors