whatthemess's solution to "Ideas for an example of interview challenge for MEAN stack developer"

I've been using GCP and Docker to great effect when it comes to creating interviewing sandboxes. I'd create a base Angular app, a base NodeJS app and an empty or stock MongoDB instance (For example a user registration app). Then ask the candidate to modify the Angular app to expose a few fields (First Name, Last Name, Department) and call the Node app to perform any business logic and/or validations (I'd have the basic routing already set up and have them just add an endpoint). Then ask them to persist the data in Mongo using some already written helper method (usually devs will copy and paste a simple working example from the web to keep moving quickly anyway). Secondly you might ask them to do come kind of autocomplete on a Department list which can test their retrieval skills as well as JS event handling. The whole thing can be encapsulated using docker-compose and a base nginx image with a volume mount for the config to handle routing and to increase the stand up speed. If the Dockerfile is part of what the candidate is given, then the only build/setup is docker build . -t app. All of this can be added to a company Git repo and branched per candidate so you can compare performance across candidates, and the test machine (could be real hardware or a perpared VM on the cloud) would be easily wipeable. If you go one step further, the test machine itself can be an image with a base state and all the previously mentioned items set up and installed, and each time a new candidate comes for the test, just run the test image with Docker! To reduce the Docker build time, make sure all the majority of the dependencies are already part of the testing image. All of this together presents the candidate with a fully configured and build ready environment, so all they have to do is code. Finally if the proper volume mounts are used, the candidate can modify code files via their favorite editor (assuming they wouldn't rather edit them with Vim) and build within the running Docker image.<\/p>\n

I've been using GCP and Docker to great effect when it comes to creating interviewing sandboxes. I'd create a base Angular app, a base NodeJS app and an empty or stock MongoDB instance (For example a user registration app). Then ask the candidate to modify the Angular app to expose a few fields (First Name, Last Name, Department) and call the Node app to perform any business logic and/or validations (I'd have the basic routing already set up and have them just add an endpoint). Then ask them to persist the data in Mongo using some already written helper method (usually devs will copy and paste a simple working example from the web to keep moving quickly anyway). Secondly you might ask them to do comesome kind of autocomplete on a Department list which can test their retrieval skills as well as JS event handling. The whole thing can be encapsulated using docker-compose and a base nginx image with a volume mount for the config to handle routing and to increase the stand up speed. If the Dockerfile is part of what the candidate is given, then the only build/setup is docker build . -t app. All of this can be added to a company Git repo and branched per candidate so you can compare performance across candidates, and the test machine (could be real hardware or a perpared VM on the cloud) would be easily wipeable. If you go one step further, the test machine itself can be an image with a base state and all the previously mentioned items set up and installed, and each time a new candidate comes for the test, just run the test image with Docker! To reduce the Docker build time, make sure all the majority of the dependencies are already part of the testing image. All of this together presents the candidate with a fully configured and build ready environment, so all they have to do is code. Finally if the proper volume mounts are used, the candidate can modify code files via their favorite editor (assuming they wouldn't rather edit them with Vim) and build within the running Docker image.

User: whatthemess

Question: Ideas for an example of interview challenge for MEAN stack developer

Back to question