An open API service indexing awesome lists of open source software.

https://github.com/lennonjesus/angular-spring-security

Simple Angular JS Authentication with Spring Boot & Spring Security (in memory auth)
https://github.com/lennonjesus/angular-spring-security

angular-js-authentication backend frontend spring-boot spring-security

Last synced: about 2 months ago
JSON representation

Simple Angular JS Authentication with Spring Boot & Spring Security (in memory auth)

Awesome Lists containing this project

README

          

### Simple Angular JS Authentication with Spring Boot & Spring Security (in memory auth)

This project is a simple sample of authentication of an Angular JS frontend application with a simple Spring Boot backend API with Spring Security.

You should have Git, Java, Maven and NodeJS installed.

#### Clone this repo
```
$ git clone https://github.com/lennonjesus/angular-spring-security.git
```

#### Run api project (it will download dependencies, compile sources and start backend)
```
$ mvn spring-boot:run
```

#### Install frontend project dependencies
```
$ npm install
```

```
$ bower install
```

#### Run frontend project
```
$ gulp serve
```

#### Open your browser
```
http://localhost:9000
```

#### Demo users

|login|password|role|
|-----|:------:|---:|
|user|user|user|
|admin|admin|admin|

#### TODO

* [ ] Tests
* [ ] Persist auth token

#### Contributions

Issues and pull requests are welcome!

#### LICENSE

[MIT](LICENSE.md)