Simple Pokedex Application to study databases connection and http request.
Using: MySQL, Java, Maven, Spring Boot, Angular
Starting at June, 24, 2021.
Ended at July 17, 2021.
Steps to install the app:
- Install Angular CLI, MySQL, Maven and JDK
- Setup your own MySQL database
- Download the repository
- Adapt the /backend/src/main/resources/application.properties to your own database
- Start the backend at to setup the database tables
- Stop the backend application (Ctrl + C)
- Adapt the /pokemonsDatabase/addToDatabase/DAO.java to your own database
- Set the classpath at /pokemonsDatabase/addToDatabase. Use command:
export CLASSPATH=mysql-connector-java-8.0.25.jar:.
- Compile /pokemonsDatabase/addToDatabase/Main.java ->
javac Main.java
- Start the /pokemonsDatabase/addToDatabase/Main to add all pokemons to the database ->
java Main
- Install frontend dependencies at /frontend ->
npm install
andng add @angular/material
- Start the backend and frontend
- Open the browser on localhost:4200
- Enjoy! :)
To start the frontend: at /frontend -> ng s
To start the backend: at /backend -> mvn spring-boot:run