This is a simple CRUD app for user management based on MEAN stack with Angular6 on the board.__ Demo: https://cryptic-earth-78314.herokuapp.com
To run project install and setup the following:
- Install MongoDB;
- Set MONGODB_URI system variable to desired database uri, if not defined default
127.0.0.1:27017/mean-crud-appuri will be used; - Install angular cli
npm install -g @angular/cli - Install app dependencies
npm install - Run mongodb e.g. to run a mongodb process as a daemon execute this command
mongod --dbpath mongo/data - Note: npm version > 7.6.0 (async/await support is necessary). Developed on v9.8.0;
Run npm run client for a dev frontend server. Navigate to http://localhost:4200/.
The app will automatically reload if you change any of the source files.
Run npm run server to run server in dev mode run by nodemon.
The server will automatically reload if you change any of the files from api directory.
In order to check if api response type curl -i localhost:3000/api/users command in terminal/
Run npm start to build frotned part of the project and run serve by node. Navigate to http://localhost:3000.
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.
Run ng test to execute the unit tests via Karma.

