A linux installed packages -explorer app built with Node & TypeScript.
- Clone the repository
- Run
npm install
- Set path of status file to
app.ts
or create.env
file with the following lineSTATUS_FILE_PATH=/path/to/status/file
If no path is provided, default mock file fromres/
will be used. - If you need to change the port the app runs on, you can edit it into
app.ts
or if you're on windows,package.json
. - Run
npm run dev
for development mode, ornpm run prod
if you wish to build the app.
Two api endpoints are located in:
/api/single/<packagename>
/api/all/
This app contains a few sample tests. You can run them with npm run test
The task involved only focusing on 'dependencies'. Therefore, dependencies in similar fields, such as 'suggests' and 'recommends' are not processed.