<commit_before><commit_msg>testing posting a new blog entry<commit_after># Hosting Angular app on github pages in 6 steps

1. Create a new Angular Application
2. Create a new GitHub Repository
3. Add a remote to your local git of your angular application
4. Build your application to a specific folder
    ```
    ng build --base-href /{{RepoName}}/ --output-path ./docs  
    ```
    _You can add --prod as well to build the prod version of your code_

5. Git commit and Push your code to github
6. Update github settings https://github.com/{{username}}/{{RepoName}}/settings/ and choose master branch docs folder. Now go to https://{{username}}.github.io/{{RepoName}}/

_Note: You may have to push again to get the page to publish_

## To update your code
1. Make changes
2. run step 4
3. git commit and and git push

## Pros
* It's free
* It's easy

## Cons
* No database
* No refresh or deep linking - you might be able make something work using the patern followed here but it wont be easy https://github.com/jekyll/jekyll-redirect-from

## Considerations
* API communication must be done over https, so your api server must be using a ssl certificate and running https
* If you host your own API server you must enable cors on your express server or other server for express see:
    * https://github.com/expressjs/cors
    * or this https://enable-cors.org/server_expressjs.html

{'fraction_non_alphanumeric': 0.08152958152958154, 'fraction_numerical': 0.007936507936507936, 'mean_word_length': 3.5927152317880795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7391747', 'n_tokens_mistral': 392, 'n_tokens_neox': 374, 'n_words': 199}