Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/masad-frost/sit-ngx-starter
https://github.com/masad-frost/sit-ngx-starter
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/masad-frost/sit-ngx-starter
- Owner: masad-frost
- Created: 2017-11-14T11:49:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-30T10:24:25.000Z (over 7 years ago)
- Last Synced: 2024-12-19T23:55:09.787Z (20 days ago)
- Language: CSS
- Size: 84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Angular Universal Starter & Boilerplate
```sh
git clone [email protected]:S-Intelligent-Technologies/sit-ngx-starter.git
cd sit-ngx-starter
npm install
```## Scripts
#### Development
```sh
npm run start
```Without SSR:
```sh
npm run start:nossr
```#### Production
##### Build
```sh
HOST_IP=http://sit-mena.com API_URL=http://api.sit-mena.com npm run build:prod # without SSR just use build:prod:nossr instead```
##### Start server
```sh
PORT=8080 npm run serve:prod
```You can specify your options before your build/start/serve scripts
`HOST_IP` defaults to localhost:3000
`API_URL` defaults to http://HOST_IP/api
`PORT` defaults to 3000
`NODE_ENV` defaults to development
`NO_SSR` defaults to false
#### Test & lint
##### unit tests and linting
```sh
npm run test
```
##### linting alone
```sh
npm run lint
```
##### format code
```sh
npm run prettify
```Formatting is run automatically before commiting, and it stops the commit if your code contains formatting/linting errors. You can use `git commit -n` to commit without the format/lint checks. However it's preffered if you use fix the lint errors, or use [Tslint disable flags instead](https://palantir.github.io/tslint/usage/rule-flags/) on the culprit.
You can add more pre-commit scripts from package.json
## Repo and developing
// TODO