Skip to content

Commit 42fb4fc

Browse files
author
Aneesh Anil
committed
ts readme updated
1 parent 766435e commit 42fb4fc

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,22 @@ This is a skeleton project structure which will help you start solving the probl
55
## Tools available to you.
66
- Node.js
77

8-
## Checking for correctness
8+
## How to build your solution
9+
10+
- Run `npm ci --include=dev` to install the dependencies.
11+
- Run `tsc --project tsconfig.json` to compile the typescript code.
12+
13+
## Running the project
914

10-
- You can click on the `Run IO` button from the interview application, which will run your solution against some preconfigured inputs and show you the output.
15+
- After building your solution as per [How to build your solution](#how-to-build-your-solution) you can now run the `main.js` against inputs.
16+
- To run, issue the command `cd dist && node main.js '[cmd [options...]' 'cmd [options...]'...]` where
17+
- **cmd** is a valid problem specific command.
18+
- **options** are optional **cmd** specific options.
1119

12-
## Running the project
20+
Example: `cd dist && node main.js 'ADD APPLE 2' 'ADD ORANGE 3' 'SHOW'` <br>
1321

14-
- To run, issue the command `node main.ts '<input 1>' '<input 2>'` where **input** is a valid input given in the problem statement.
15-
- For example: `node main.ts 'PLACE_ORDER 101 Apple 5' 'TOTAL_COST 101'`
22+
Note: Each full command should be wrapped in single quotes(').
23+
24+
## Checking for correctness
1625

17-
Note: Each full command should be wrapped in single quotes.
26+
- You can click on the `Run IO` button from the interview application, which will run your solution against some preconfigured inputs and show you the output.

0 commit comments

Comments
 (0)