AbraaoAlves / java-spring-npc

1 stars 0 forks source link

NPC Project

Alt text

Table of Contents

Get Starter

run this project inside the configured container by .devcontainer. See how to open this run this in your machine

or

run this project using Github CodeSpace, clicking here:

Open in GitHub Codespaces

Usage

Open two terminals

  1. first run: (this will run java spring boot in developer mode)
  mvn spring-boot:run
  1. second run: (this will run react vite in developer mode)
  cd ui && npm run dev

For more details about UI project, see this README.md


Application Architecture

Spring Boot exports REST Apis using Spring Web MVC & interactsrations & finder methods with Spring D.

React Client sends HTTP Requests and retrieves HTTP Responses using Axios. React Router is used for navigating to pages.

Technology

Rest Apis Back-end

These are APIs that Spring Boot App will export:

Methods Urls Actions
POST /api/users create a new User
GET /api/users paginated users
GET /api/users/:id retrieve a user by :id
PUT /api/users/:id update a user by :id
DELETE /api/users/:id DELETE a user by :id