Codeinterview-service ·

Codeinterview is a project for conducting interviews for a developer position.
Out of the box:
- Codeinterview allows you to create, edit, delete an interview
- Codeinterview allows you to create a websocket room for livecoding
- Codeinterview allows you to evaluate the interview based on many parameters
- Codeinterview allows you to save your tasks for interviews. At the time of the interview, you can conveniently find the desired task and quickly use its interview
Available Languages for livecoding
- JavaScript
- Typescript
- Go
- C#
- Python
To start using codeinterview you need to launch 3 services.
This service is responsible for CRUD operations on entities.
- Install dependencies
yarn
- Copy ./.env.example to ./.env
- Paste your local database credentials in .env
- Build application
yarn build
- Start application
yarn start
- Make Docker image by ./Dockerfile
docker build -t codeinterview-service .
- Run docker image with enviroment variables from .env
docker run --env-file ./.env codeinterview-service
-
Create migration
npm run migration:create --name=YOUR-NAME.
We use npm here because yarn still does not have args
-
Generate migration by code diff
npm run migration:generate --name=YOUR-NAME.
We use npm here because yarn still does not have args
-
Run migraions
- yarn build - Convert ts to js. Because migrations must work on deploy, we wotk with them on localhost like on production
- yarn migration:run