This repository contains a simple Node.js application that serves as a coding challenge for developer interviews. The application is built using Express.js and can be extended to add necessary routes and functionality as needed.
To get started with this application, follow the instructions below:
- Node.js (version 20 or higher)
- npm (version 9 or higher)
You must have Docker and devcontainers installed to run this application in a containerized environment.
-
Clone the repository:
git clone git@github.com:companieshouse/developer-interview-node.git
-
Navigate to the project directory:
cd developer-interview-node -
Install the dependencies:
npm install
To run the application, use the following command:
npm run start:devwhich will start the server in development mode. The application will be accessible at http://localhost:3000.
If you're running within a Unix-based terminal, you can run the following command to create a zip file of your work:
./bin/zip-my-codeThis will create a zip file in the root of the project with your code, which you can then share with us.
If you're operating on Windows, you can create a zip file of your work using the following command in PowerShell:
Compress-Archive -Path .\* -DestinationPath techtest-<your-name>.zipWhere <your-name> should be replaced with your actual name. This command will create a zip file in the root of the project with your code, which you can then share with us.
If you're using Windows File Explorer, you can create a zip file of your work by following these steps:
- Navigate to the root directory of the project.
- Select all the files and folders in the project (you can use Ctrl + A).
- Right-click on the selected files and choose "Send to" > "Compressed (zipped) folder".
- Name the zip file as
techtest-<your-name>.zip, replacing<your-name>with your actual name. - The zip file will be created in the root of the project, which you can then share with us.