⚠️ Still under construction
This project is an Angular CLI seed integrated with Nebular framework.
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
To test the project use:
$ npm run test
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
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
$ git remote add upstream https://github.com/alobaton/nebular-angular-seed
$ git pull upstream master
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