https://github.com/shubhamv108/spring-boot-jwt-demo
A simple parking lot applicaion built using Spring Boot to demostrate Spring Security with Json Web Tokens.
https://github.com/shubhamv108/spring-boot-jwt-demo
json-web-token jwt jwt-auth jwt-authentication jwt-bearer-tokens jwt-token jwt-tokens maven mysql parking-lot spring spring-boot spring-data-jpa spring-security springframework
Last synced: 2 months ago
JSON representation
A simple parking lot applicaion built using Spring Boot to demostrate Spring Security with Json Web Tokens.
- Host: GitHub
- URL: https://github.com/shubhamv108/spring-boot-jwt-demo
- Owner: shubhamv108
- Created: 2019-05-20T18:46:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-24T08:38:16.000Z (almost 5 years ago)
- Last Synced: 2025-03-24T17:53:54.709Z (about 1 year ago)
- Topics: json-web-token, jwt, jwt-auth, jwt-authentication, jwt-bearer-tokens, jwt-token, jwt-tokens, maven, mysql, parking-lot, spring, spring-boot, spring-data-jpa, spring-security, springframework
- Language: Java
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# To run the application, execute following command in terminal -
cd app-parking-lot
mvn clean install
java -jar -Dspring.profiles.active= -Dspring.datasource.url=jdbc:mysql://:/?useSSL=false -Dspring.datasource.username=root -Dspring.datasource.password=root .jar
# After successfully execution, open browser and check following url -
http://:/api/public/health
# For depolying with an Nginx Rverse proxy by replacing text in between <> :
cd app-parking-lot
mvn clean install
cp parking-lot.service /etc/systemd/system/
sudo vi /etc/system/system/parking-lot.serivce
## Provide correct file path in ExecStart
## ExecStart=/usr/bin/java -jar /parking-lot/app-parking-lot/target/parking-lot.jar
sudo systemctl start parking-lot
cp parking-lot.conf /etc/nginx/conf.d/
sudo systemctl start nginx
## Application shall be accessible at http://localhost:8080/parking-lot/...
# Build & Run application using Docker
docker build -f Dockerfile-DEV -t shubhamv/parking-lot .
docker run --network="host" -e JAR=parking-lot.jar -t shubhamv/parking-lot:latest .