Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tofazzaltopu/fetch-country-and-currency-information-with-jwt
https://github.com/tofazzaltopu/fetch-country-and-currency-information-with-jwt
Last synced: about 18 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/tofazzaltopu/fetch-country-and-currency-information-with-jwt
- Owner: TofazzalTopu
- Created: 2022-02-15T18:03:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-02-16T17:03:04.000Z (over 2 years ago)
- Last Synced: 2023-10-21T08:24:16.208Z (about 1 year ago)
- Language: Java
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Country and currency information System
Please follow below instruction to run this project:
###Browse swagger:
http://localhost:8080/swagger-ui.htmlTechnology stack:
1. Java - 11
2. Spring Boot
3. Spring Data
4. JWT
5. Spring Security
6. Maven
7. MongoDB
8. Docker
9. JUnit/Mockito
10. ModelMapper
11. Zalando (Problem Library)
12. Swagger
13. Devtools
14. lombokRun Commands:
1. mvn clean
2. mvn install
3. mvn spring-boot:runGenerate and run jar file:
1. mvn clean install.
2. cd target
3. java -jar country.jar
### Create docker image and run
1. docker build -t country .
2. docker run -p 8080:8080 country
3. docker container run --name country -p 8080:8080 -d country
4. docker start
5. docker logs### To find currency exchange rate in INR
```
1. You should have a Subscription Plan to find currency exchange rates based on a symbol.
2. Use below URL if you have Subscription Plan.
Example: http://data.fixer.io/api/latest?access_key=334e9ad1306c2fb9feae0c7ef001a7d3&symbols=INR
(CURRENCY_LATEST_EXCHANGE_RATE_URL = CURRENCY_LATEST_EXCHANGE_RATE_URL + "&symbols=INR";)
```
```
1. To find currency exchange rate in INR with baseCurrency.
2. You should have a Subscription Plan to find currency exchange rates based on a specific base and symbol.
3. Use below line if you have Subscription Plan
Example: http://data.fixer.io/api/latest?access_key=334e9ad1306c2fb9feae0c7ef001a7d3&base=USD&symbols=INR
(CURRENCY_LATEST_EXCHANGE_RATE_URL = CURRENCY_LATEST_EXCHANGE_RATE_URL + "&base=" + baseCurrency + "&symbols=INR")
```
```
1. To find all currency exchange rates, You do not need Subscription Plan to find default currency exchange rates.
Example: (http://data.fixer.io/api/latest?access_key=334e9ad1306c2fb9feae0c7ef001a7d3)
```