# install the dependencies with Yarn
$ yarn install
# start the development server
$ yarn start
go to http://localhost:3451 in your browser.
You can use NVM (Node Version Manager) to get proper Node version
The project uses yarn.
To install dependencies please execute the following command:
yarn install
Simply run:
yarn start
to start the SNL app on http://localhost:3451.
And you are all set! You can now modify your components on the fly without having to reload the entire page.
If you want your code to become available to other Docker projects (e.g. for local environment testing), you need to build the app and then the Docker image:
// Note: 'build' - will build the angular app, 'ssr' will build the node js app so both are needed in order to run app on docker.
yarn build:ssr
docker-compose build
You can run it by executing following command:
docker-compose up
As a result, the SNL frontend app will be started and made available on port 3451
.
Before creating a PR, ensure that all of the code styling checks and tests have been done locally (they will be caught on Jenkins if there are any discrepancies)
- run:
yarn lint
- single run:
yarn test
- live mode (TDD style):
yarn test-watch
- single run:
yarn test:functional
You can change target URL by changing the e2e-url.js. In this file there are two configurations already: local, and ATT. Uncomment this configuration that you would like to use. E2E tests generates screenshot on failure. Output is stored in functional-output directory.
To build your application, run:
yarn build
You can now go to /dist
and deploy that to your server!
You can generate api docs (using TypeDoc) for your code with the following:
yarn docs
This project is licensed under the GPL-3 License - see the LICENSE file for details.