https://github.com/ankitrajput0096/spring_boot_oauth_2_security
Dockerized Spring Boot applications (Authorization and Resource Server) with Dockerized postgreSQL server with Oauth 2 security (JPA, Hibernate, PostgreSQL)
https://github.com/ankitrajput0096/spring_boot_oauth_2_security
authorization-server docker docker-compose jpa-hibernate ouath2 postgresql resource-server spring-boot
Last synced: 3 months ago
JSON representation
Dockerized Spring Boot applications (Authorization and Resource Server) with Dockerized postgreSQL server with Oauth 2 security (JPA, Hibernate, PostgreSQL)
- Host: GitHub
- URL: https://github.com/ankitrajput0096/spring_boot_oauth_2_security
- Owner: ankitrajput0096
- Created: 2020-02-23T19:15:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T17:48:35.000Z (almost 6 years ago)
- Last Synced: 2025-01-08T17:48:40.144Z (over 1 year ago)
- Topics: authorization-server, docker, docker-compose, jpa-hibernate, ouath2, postgresql, resource-server, spring-boot
- Language: Java
- Homepage:
- Size: 2.52 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot Oauth 2 Security using role based approach along with Database
Dockerized Spring Boot applications (Authorization and Resource Server) with Dockerized postgreSQL server with Oauth 2 security (JPA, Hibernate, PostgreSQL)
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development purposes. See running for notes on how to run the project on a system.
### Prerequisites
1. Clone the project to your local environment:
```
git clone https://github.com/ankitrajput0096/Spring_Boot_Oauth_2_Security
```
2. You need Docker to be installed:
#### Windows:
https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe
#### Mac:
https://download.docker.com/mac/stable/Docker.dmg
#### Ubuntu:
https://docs.docker.com/install/linux/docker-ce/ubuntu/
### Installing
Once you have docker installed on your environment, install the project dependencies via:
Build docker Image:
```
docker-compose build
```
Start docker:
```
docker-compose up
```
## Running
Start docker:
```
docker-compose up
```
Your Authorization server should be now running on http://localhost:8090
Your Resource server should be now running on http://localhost:8080
## Get an access to all exposed API's with Postman
1. Install Postman (https://www.getpostman.com)
2. Import Postman collection from the `Spring_Boot_Ouath2.postman_collection.json` file
3. Enjoy !!
## Built With
* [Spring Boot](https://spring.io/projects/spring-boot) - Spring Boot 2
* [Maven](https://maven.apache.org/) - Dependency Management
* [Docker](https://www.docker.com/) - For containerization of application
* [PostgreSQL](https://www.postgresql.org/) - Database
* [OAuth2 Boot](https://docs.spring.io/spring-security-oauth2-boot/docs/current/reference/htmlsingle/) - OAuth2 Boot
## Contributing
If you have any improvement suggestions please create a pull request and I'll review it.
## Authors
* **Ankit Rajput** - *Initial work* - [Github](https://github.com/ankitrajput0096)
## License
This project is licensed under the MIT License
## Acknowledgments
* Big thanks to Pivotal for Spring Boot framework, love it!