Skip to content

roi-rekrytering/code-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roi Rekrytering Coding Challenge

This coding challenge is based on a basic Javascript program which lets a user:

  1. add a user by username
  2. add a company by company name

A few issues has been left unresolved for you fix. A set of requirements has been set up in order to pass, along with an open ended "refactoring" challenge. Please read through this document before starting the challenge, as both the requirements and refactoring should be planned out before taken on.

Requirements

This is a list of requirements which includes both bug fixes and some feature development.

  1. Users are created with a userId of 1. Change this so that a userId will never be duplicated.
  2. Usernames should be unique. Add a check which prohibits duplication.
  3. Companes are created with a companyId of 1. Change this so that a userId will never be duplicated.
  4. Add a menu item which lets the user attach a user to a company.
  5. Add a menu item to list users & companies.

Refactoring

The other part of this challenge is changing the code to make it both scalable and testable. It's up to you how you achieve this, but keep in mind that it should be easily testable (unit/integration tests) and allow us to add a feature without changing any existing code.

Final note

The program was built with an older version of javascript to lower the entry level barrier. There is nothing in this test that keeps you from completely rebuilding it with a newer version (like ES6 and/or Typescript), as long as you fulfill the requirements. Good luck!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published