This project is a platform for making online interview with writing a code.
-
JDK: java SE 1.8.
-
Maven: apache-maven-3.3.9.
-
SQL Server: MySQL Server 5.5.
-
Install Node.js
-
In the project directory, use "npm start"
Use mvn spring-boot:run
Role Username Password
ADMIN admin admin MANAGER manager manager RECRUITER recruiter recruiter REVIEWER reviewer reviewer INTERVIEWER interviewer interviewer
create user "codeinterviewer"@"localhost" identified by "codeinterviewer"; grant all on . to "codeinterviewer"@"localhost";
create database codereviewer;
mvn clean package (#Enter) java -jar target/code-reviewer.war --spring.profiles.active=prod
/user GET --> returns all users POST --> consumes request body of User.class; saves a new user PUT --> consumes request body of User.class; updates a user DELETE --> consumes request param "id"; sets field 'active' onto false /restore/{id} --> (PUT) sets field 'active' onto true /{id} --> (GET) returns a user which has same id /current --> (GET) returns a user which logged in /participants --> (GET) returns a list of participants of current user /{id}/profileImage --> (POST) changes profile image of user /{id}/backgroundImage --> (POST) changes background image of user
/participant GET --> returns all participants POST --> consumes request body of Participant.class; saves a new participant PUT --> consumes request body of Participant.class; updates a participant DELETE --> consumes request param "id"; sets field 'active' onto false /{id} --> (GET) returns a participant which has same id