-
install jdk8
- set
JAVA_HOME
environment variable
- set
-
install MAVEN
-
install MongoDB
-
install Angular
- npm install -g @angular/cli@1.7.4
$ git clone https://github.com/a-hosseini/Automobile-Maintenance-Tracker.git
$ mvn test
- Tomcat is the embedded web server in this application.
- Open the project in an IDE like NetBeans.
- Update src/main/resources/application.yml to connect to your MongoDB
- The application create mydb schema in your MongoDB.
spring: data: mongodb: database: mydb host: 172.17.117.175 port: 27017
- Build and run the project from the IDE.
- Use Postman to Get, Post, Put and Delete entities.
- This is a full stack application and the software works end to end.
- The UI is build using Angular 5.
\> cd \<PROJECT_ROOT_FOLDER>\client
\> ng serve
Now, UI application is http://localhost:4200 and the server is http://localhost:8080.
{
"vin": "ABC",
"make": "Honda",
"model": "Accord",
"year": 2010,
"mileage": 100000,
"color": "Red",
"trim": "Ex-V6",
type: "Electric"
}
- http://localhost:8080/car
{
"vin": "ABC",
"make": "Honda",
"model": "Accord",
"year": 2010,
"mileage": 100000,
"color": "Blue",
"trim": "Ex-V4",
type: "Diesel"
}
- http://localhost:8080/car
{
"vin": "ABC",
"make": "Honda",
"model": "Accord",
"year": 2010,
"mileage": 100000,
"color": "Blue",
"trim": "Ex-V4",
type: "Diesel"
}