Base project with authorization, login and user roles.
- login/logout
- user roles (Admin, User)
- server side user handling
- Angular 7 (with Angluar CLI 7.0.3)
- LESS
- Node.js & expressjs for server implementation
- MongoDB
- mongoose
- JWT (JSON Web Token)
Use backend/config/config.json to configure database credentials and the jwt (json web token).
{
"secret": "",
"mongodb": {
"mongoConnection": "mongodb://localhost:27017/",
"host": "localhost",
"port": "27017",
"db": "userlogin",
"user": "",
"pw": ""
}
}
ng build --base-href /folder-name/ --prod
More information about ng build: https://github.com/angular/angular-cli/wiki/build
Tests will follow later