Hi, thanks for your effort but this project seems to be failing at least from part 1 to part 4. While backend system is up and running I still cannot see Employee information on browser with 'localhost:8080'. Can you please suggest?
Develop environment: Windows 64bit + Java 1.8.
After starting ReactAndSpringDataRestApplication in IDE, curl shows:
>curl localhost:8080/api/employees
{
"_embedded" : {
"employees" : [ {
"firstName" : "Frodo",
"lastName" : "Baggins",
"description" : "ring bearer",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/employees/1"
},
"employee" : {
"href" : "http://localhost:8080/api/employees/1"
}
}
}, {
"firstName" : "Bilbo",
"lastName" : "Baggins",
"description" : "burglar",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/employees/2"
},
"employee" : {
"href" : "http://localhost:8080/api/employees/2"
}
}
}, {
"firstName" : "Gandalf",
"lastName" : "the Grey",
"description" : "wizard",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/employees/3"
},
"employee" : {
"href" : "http://localhost:8080/api/employees/3"
}
}
}, {
"firstName" : "Samwise",
"lastName" : "Gamgee",
"description" : "gardener",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/employees/4"
},
"employee" : {
"href" : "http://localhost:8080/api/employees/4"
}
}
}, {
"firstName" : "Meriadoc",
"lastName" : "Brandybuck",
"description" : "pony rider",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/employees/5"
},
"employee" : {
"href" : "http://localhost:8080/api/employees/5"
}
}
}, {
"firstName" : "Peregrin",
"lastName" : "Took",
"description" : "pipe smoker",
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/employees/6"
},
"employee" : {
"href" : "http://localhost:8080/api/employees/6"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "http://localhost:8080/api/employees"
},
"profile" : {
"href" : "http://localhost:8080/api/profile/employees"
}
},
"page" : {
"size" : 20,
"totalElements" : 6,
"totalPages" : 1,
"number" : 0
}
}
> curl localhost:8080
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8" />
<title>ReactJS + Spring Data REST</title>
<link rel="stylesheet" href="/main.css" />
</head>
<body>
<div id="react"></div>
<script src="built/bundle.js"></script>
</body>
</html>