paresh-barad / mean-login-register

MEAN Stack Login and Logout with Angular 7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Login And Register from Scratch using MEAN Stack (Angular 8)

If you think this source code is useful, it will be great if you just give it star.

Quick Start for Server

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

Quick Start for Client

Go inside the directory
cd mean-login-register/client

Install dependencies
npm install

Start development server
ng serve

Development server

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.

Build

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.

Database jwt Configration for server

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

About

MEAN Stack Login and Logout with Angular 7


Languages

Language:TypeScript 59.1%Language:JavaScript 27.3%Language:HTML 13.6%