Contains basic admin management panel done in React. I generally use Angular, and it shows.
Decided to try it anyway.
For building and running the application you need:
Caution, when using Windows cmd replace ./mvnw
with mvnw
.
./mvnw package
./mvnw spring-boot:run
./mvnw package
docker build -f Dockerfile -t invitation-manager:invitation-manager .
docker run -p 8080:8080 <image_id> (You can get it with `docker images`)
./mvnw test
cd invitation-manager-ui
Install the npm
packages described in the package.json
and verify that it works:
npm install
npm start
===========INVITATION===========
GET: http://localhost:8080/api/invitation => List of invitations
GET: http://localhost:8080/api/invitation/{invitationId} => Invitation or error if doesn't exist
POST: http://localhost:8080/api/invitation
Body:
{
"inviteeEmail": "[email protected]",
"description": "Birthday Party Meeting",
"inviterEmail": "[email protected]"
}
PUT: http://localhost:8080/api/invitation/accept/{invitationId}
PUT: http://localhost:8080/api/invitation/decline/{invitationId}
==============USER==============
GET: http://localhost:8080/api/user => List of users and their invitations
GET: http://localhost:8080/api/user/1 => User or error if doesn't exist
POST: http://localhost:8080/api/user
Body:
{
"firstName": "Kajko",
"lastName" : "Kokosz",
"email" : "[email protected]"
}
Shut it down manually with Ctrl+C
.