API backend for the AniRec application.
Supported entities:
- Users
- Anime
- Genres
- Characters
- Favorites (Anime and Genre)
- Reviews
- Snippets
- Upvotes
Supported features:
- searching using keywords
- IDE (Eclipse or IntelliJ)
- JDK 11+
- MySql database (AniRec schema)
- (Optional) Postman or Curl (CLI) for testing the API
-
Make sure you have the build plugins installed and configured (spring-boot-maven-plugin)
-
Run
in IDE
- Build and run project with maven
./mvnw spring-boot:run
- for Windows, run the
cmd
script instead
./mvnw.cmd spring-boot:run
Once the server is up, it will be accessible at localhost:8080
.
-
Configure the connection to your local MySQL database (or a remote one if you have access)
-
Start up the server
-
After the server comes up, you can test individual endpoints through "Postman" or "curl".
-
for example, running a
GET
request onlocalhost:8080/api/anime
will retrieve a list of all anime in the database