Skip to content

alobaton-pricesmart/nebular-angular-seed

Repository files navigation

nebular-angular-seed

⚠️ Still under construction

Build Status codecov dependencies Status devDependencies Status

This project is an Angular CLI seed integrated with Nebular framework.

Live Demo

How to start?

Clone the repository:

$ git clone https://github.com/alobaton/nebular-angular-seed.git
$ cd nebular-angular-seed/nebular-angular-seed

Install the project's dependencies

$ npm install

In order to start the seed use:

$ npm start

To build the application execute:

$ npm run build

How to test?

To test the project use:

$ npm run test

Dockerization

Production build and deployment

The prod image serves the minified app (sources compiles with a minimal set of dependencies), via an Nginx server. It is self-contained, and can therefore be pushed to a Docker registry to be deployed somewhere else easily.

To start the container use:

$ docker-compose -f docker-compose.prod.yml up -d   # optional: --build, see below

Open your browser at http://localhost:4200

Updating dependencies and sources

If you are not already familiar with Docker, please note that for both Dev and Prod docker environments, updates to npm dependencies will be visible only after re-building the image and restarting a new container from it.

In Dev environment, this only applies to npm dependencies, since the sources are mounted as a shared directory. In Prod environment, this applies to any change in the project.

To force docker-compose to rebuild the image before starting the container, use the --build flag:

$ docker-compose -f docker-compose.dev.yml up -d --build

How to update?

$ git remote add upstream https://github.com/alobaton/nebular-angular-seed
$ git pull upstream master

How to publish to Github Pages?

In order to publish to Github Pages user:

$ ng build --aot --prod --base-href "https://alobaton.github.io/nebular-angular-seed/"
$ npx ngh --dir=dist/nebular-angular-seed

License

MIT