<commit_before># MobileCms
tl;dr : Small CMS with categories. Data is stored in JSON files.

- Angular 7
- HTML 5 images
- Hosted on a cheap server
- All data is public

It is initially intended to display content for a sport organization : News, calendar events, public pages, documents, ...

Visit the [demo](https://olivierb29.github.io/mobilecms-demo/) on github pages

[![Build Status](https://travis-ci.org/OlivierB29/mobilecms.svg?branch=master)](https://travis-ci.org/OlivierB29/mobilecms)

## Admin App
Since this project is the frontend, an admin app is necessary :
- [admin demo](https://olivierb29.github.io/mobilecms-demo/admin).
- source code : [mobilecms-admin](https://github.com/OlivierB29/mobilecms-admin)

## Development server
- Node JS
- `npm i -g @angular/cli`
- `npm i`
- `npm start` (without backend)
- `npm run dev` (with backend)
- Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Build
Run `npm run dist` to build the project. The build artifacts will be stored in the `dist/` directory.

## Deploy
Transfer files in `dist` directory to your server (such as `/var/www/html/`).

## FAQ
- Browser compatibility
Same as [Angular](https://angular.io/guide/browser-support) with polyfills. I tried some third party components, but it broke IE 11 and iOS 7 support.

- Why not using a true CMS on a web hosting package ?
Value for money.

- And a hosted CMS ?
I prefer a domain name, instead of mysite.company.com

- Why JSON files VS database ?
Some entry level offers don't have any database, and <10MB of file storage, such as a domain name package.
For now, we have 10-20 news per year, and roughly the same for calendar events.

- Server hardware requirements
It can be hosted on anything, even a Raspberry Pi.

## Passed audits
Passed audits from PageSpeed Insights (91 Mobile score)
- 1 Properly size images
- 2 Defer offscreen images
- 3 Minify CSS
- 4 Minify JavaScript<commit_msg>misc update<commit_after># MobileCms
tl;dr : Small CMS with categories. Data is stored in JSON files.

- Angular 7
- HTML 5 images
- Hosted on a cheap server
- All data is public

It is initially intended to display content for a sport organization : News, calendar events, public pages, documents, ...

Visit the [demo](https://olivierb29.github.io/mobilecms-demo/) on github pages

[![Build Status](https://travis-ci.org/OlivierB29/mobilecms.svg?branch=master)](https://travis-ci.org/OlivierB29/mobilecms)

## Admin App
Since this project is the frontend, an admin app is necessary :
- [admin demo](https://olivierb29.github.io/mobilecms-demo/admin).
- source code : [mobilecms-admin](https://github.com/OlivierB29/mobilecms-admin)

## Development server
- Node JS
- `npm i -g @angular/cli`
- `npm i`
- `npm start`
- Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Build
Run `npm run dist` to build the project. The build artifacts will be stored in the `dist/` directory.

## Deploy
Transfer files in `dist` directory to your server (such as `/var/www/html/`).

## FAQ
- Browser compatibility
Same as [Angular](https://angular.io/guide/browser-support) with polyfills. I tried some third party components, but it broke IE 11 and iOS 7 support.

- Why not using a true CMS on a web hosting package ?
Value for money.

- And a hosted CMS ?
I prefer a domain name, instead of mysite.company.com

- Why JSON files VS database ?
Some entry level offers don't have any database, and <10MB of file storage, such as a domain name package.
For now, we have 10-20 news per year, and roughly the same for calendar events.

- Server hardware requirements
It can be hosted on anything, even a Raspberry Pi.

## Passed audits
Passed audits from PageSpeed Insights (91 Mobile score)
- 1 Properly size images
- 2 Defer offscreen images
- 3 Minify CSS
- 4 Minify JavaScript
{'fraction_non_alphanumeric': 0.09607993850883935, 'fraction_numerical': 0.015885216500128106, 'mean_word_length': 3.923076923076923, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3643747', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1148, 'n_words': 515}