This project was generated with Angular CLI version 7.0.6.
The project uses Angular Universal and Service Workers to show server side rendering (ssr) and PWA.
In addition it also uses Angular Material for most of the UI.
Download Node. Make sure that it's on your path by running node --version
or npm --version
.
This does MongoDB to show how API calls to backend work with a database.
Download from MongoDB - make sure it's the community.
If you are using a mac and have homebrew installed use MongoDB Brew Install
Confirm that installation works and is on your path by running mongod
, be aware that if you didn't create the data folder it will fail.
Once you have node installed, you can also install the Angular CLI by running npm install -g @angular/cli
.
This is optional if you want to have the recommended tool to add additional pieces to the project.
Run npm install
.
Run npm run build:ssr && npm run serve:ssr
in a terminal.
Once it's complete you should be able to see the site at http://localhost:8000.
If you want to see some messages run the following command if you have curl.
curl -H "Content-Type: application/json" -d '{"groupId": 1,"message": {"messagetext": "This is a different test message","timestamp": "2019-01-03T11:37:00"},"users": [{"firstName": "Ricardo", "number": "8055872684", "color": "red"}]}' http://locahost:8000/api/messages
This is licensed under the MIT License