Angular App and Spring Boot Api for Country, State and City

silentsudo

Ashish Agre

Posted on May 19, 2020

Angular App and Spring Boot Api for Country, State and City

Introduction

Address WebApi and test example to display
Country, State and City

Prerequisite

  • Java SDK
  • node.js

Building Backend

https://gitlab.com/address-api/api-server.git

Create Database in mysql create database address_api_db;

Export Env variable

MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_SECRET=my_super_secret_password

Execute maven command to run project

./mvnw spring-boot:run

API Details

Building Frontend

https://gitlab.com/address-api/frontend.git

Build

ng build

Run

ng serve

Navigate to http://localhost:4200

Demo

Ref:

Thanks to https://github.com/hiiamrohit/Countries-States-Cities-database 🙇

Source
https://silentsudo.gitlab.io/post/angular/2020-05-19-api-country-state-city/

💖 💪 🙅 🚩
silentsudo
Ashish Agre

Posted on May 19, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related