User Registration using Spring Boot, MongoDB and AngularJS (angular cli)
In order to run the project, you need to install MongoDB and run it within this command:
mongod
The mongodb instance will be running usually on the port 27017
After starting the database, open the console mongo
and execute the following commands:
use db_users
; => this will create the database db_usersdb.createCollection("users")
; => this will create the collectionusers
that will be used in this project
IntelliJ IDEA Open the project usereg Run the project inside usereg
Running usually on the port 8080 The url of the Rest Api is: http://localhost:8080/users
The root of the project is api-client
Run ng serve
inside the root directory api-client
for a dev server. Navigate to http://localhost:4200/
. 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 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
in the root directory api-client
to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.