Running a back-end server
Start a server in live interviews
You can run a back-end server as part of an interview when you need a server that your code can make GET and POST requests to, or when you want a server that runs behind the scenes and is fully controlled by you without being visible to the candidate.
Set Up Your Back-End Server
To run a back-end server, first navigate to your Custom Library in the main navigation bar and select Interviews.

Next, click New interview question > Multi-file question.

In the modal that appears, provide a name for your interview question, assign a difficulty level, and then open the IDE to set up your question with instructions, files, and code.
Use the Server in an Interview
Once your question is set up, load it into an interview and start the server. E.g. for a Next.js application just run npm run dev in the terminal.

The server will be accessible under a URL that will remain the same and can be reused across multiple interviews. In the example below, the server is under https://CyIfhwx11.cblab.app and you can now make GET and POST requests to that URL.
