This project was generated with Angular CLI version 7.0.3. This project was built with a MEAN Stack (MongoDB Express.js Angular7 and NodeJS)
I managed to create the list with order and pagination which is not required but i thought it's a plus I managed to add the "Add User" Feature in order to make easy to add users into the mongoDB instead of running a script
If you prefer to run just the script to create the users you can do it using a script like this:
db.names.insertMany([ { personName: 'Test name1'}, { personName: 'Test name2'}, ])
- Clone project
- run npm install
- run npm install --save express body-parser cors mongoose
- npm install nodemon --save-dev
- Install MongoDB
- Run the mongoDB
- Run the nodeJS API using npm run serve
- Run the App using ng serve
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 ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Note: The Unit tests are working and i managed to do the majority of them in order to show that i know how to implement them.
Run ng test
to execute the unit tests via Karma.