An application that monitors and maintains servers usage.
The application provides an editable table that allows the user to monitor and update the servers usage. Changes made to the table should be saved by clicking on the floating save button in the bottom right section of the application to prevent lost of changes. Additionally, to prevent accidental removal of server(s) and modification to the key fields such as hostname and IP addresses, the modification has been disabled by default, to modify these fields, add ?editable=true
to the URL.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Install the following application(s):
- [NodeJS](https://nodejs.org/en/)
- [MongoDB](https://docs.mongodb.com/manual/installation/)
Run npm install
followed by npm start
to start both the backend and application server. Once the servers are started, the application will be available at http://localhost:8888/
.
The application is split into 2 main section, the backend server which act as a REST server that allows the application to communicate with MongoDB and the application server which serve the angular application.
Run npm run start:server
to start the backend server. It is a nodejs server that served as a bridge between application and MongoDB. The app will automatically reload if you change any of the source files.
Run npm run start:dev
for a dev server. The application should automatically appear in your browser, if not, navigate to http://localhost:8080/
. The app will automatically reload if you change any of the source files.
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
.
Run npm run lint
to lint the project. You can also fix the fixable lint errors via the command npm run lint:fix
.
Run npm run build
to build the project, it is configured to run angular build with the production configuration. The build artifacts will be stored in the dist/
directory.
Run npm run test
to execute the unit tests via Karma.
Run npm run e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.