https://github.com/actionanand/jamgularblog
it's an Angular JAMstack project using static site generator Scully
https://github.com/actionanand/jamgularblog
angular angular11 scully static-site-generator wordpress-rest-api
Last synced: 8 months ago
JSON representation
it's an Angular JAMstack project using static site generator Scully
- Host: GitHub
- URL: https://github.com/actionanand/jamgularblog
- Owner: actionanand
- Created: 2021-05-04T11:56:00.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-05T14:48:05.000Z (almost 5 years ago)
- Last Synced: 2025-04-02T03:28:30.097Z (12 months ago)
- Topics: angular, angular11, scully, static-site-generator, wordpress-rest-api
- Language: TypeScript
- Homepage: https://jamgularblog.netlify.app/
- Size: 563 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JAMgularBlog
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.12.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Scully - How to run locally
- Run `ng build` or `ng build --watch` to build the angular app
- Run `npm run scully -- --scanRoutes` to scan the Routes (have to run whenever new routes are there)
- Run `npm run scully` (have to run after building the app)
- Run `npm run scully -- --watch`
- If the above commend didn't open in watch mode, then Run `npm run scully:serve` and open Scully [Static server](http://localhost:1668/)
- set `build:scully` as a command for production to start the app in the server
## Scully - Help
- [Scully official](https://scully.io/ "Scully official")
- [JAMstack Static Site generator](https://jamstack.org/generators/ "staticgen.com")
- [Netlify](https://www.netlify.com/)
## Troubleshooting
### How to kill server when seeing “EADDRINUSE: address already in use”
1. To find the process id (PID) associated with the port
```shell
lsof -i tcp:1668
```
It'll display as below. Please note down the PID from that
```bash
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 44475 chen5 31u IPv4 0x8b1721168764e4bf 0t0 TCP *:strexec-s (LISTEN)
```
2. Then to kill the process by PID
```bash
kill -9 44475
```
-[source](https://levelup.gitconnected.com/how-to-kill-server-when-seeing-eaddrinuse-address-already-in-use-16c4c4d7fe5d)
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.