Skip to content

softjourn-internship/code-interviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-interviewer

Purpose:


This project is a platform for making online interview with writing a code.

Environment configuration:


  1. JDK: java SE 1.8.

  2. Maven: apache-maven-3.3.9.

  3. SQL Server: MySQL Server 5.5.

  4. Install Node.js

  5. In the project directory, use "npm start"

Run server:


Use mvn spring-boot:run

Home page:


http://localhost:8080/

Log in with:


Role Username Password

ADMIN admin admin MANAGER manager manager RECRUITER recruiter recruiter REVIEWER reviewer reviewer INTERVIEWER interviewer interviewer

command for create user in MySQL

create user "codeinterviewer"@"localhost" identified by "codeinterviewer"; grant all on . to "codeinterviewer"@"localhost";

commands for create database in MySQL

create database codereviewer;

commands for use prod profile

mvn clean package (#Enter) java -jar target/code-reviewer.war --spring.profiles.active=prod

URLs:

/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

About

This project is a platform for making online interview with writing a code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •