If you think this source code is useful, it will be great if you just give it star.
Clone the repository
git clone https://github.com/paresh-barad/mean-login-register.git
Go inside the directory
cd mean-login-register/server
Install dependencies
npm install
Start development server
node server.js
Go inside the directory
cd mean-login-register/client
Install dependencies
npm install
Start development server
ng serve
Run ng serve for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
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.
Global variables such as mongodb url can be set in server/config/database.config.js
You can be change jwt secret in server/config/jwt.config.js
Restful API
An api with the following routes
POST /users/registerMe
POST /users/loginMe
GET /users/usersMe
GET /users/current
GET /users/:id
PUT /users/:id
DELETE /users/:id