nhsx / antibody-web

Web application for finger prick covid19 antibody Lateral Flow Tests (LFT) and interpreting results
MIT License
28 stars 10 forks source link

Running locally - Yarn dev 'error Command "dev" not found.' #51

Closed sambowenhughes closed 4 years ago

sambowenhughes commented 4 years ago

OS: Mac Catalina 10.15.2 Branch: Master (Latest - 08/06/2020)

In the middle of trying to run the antibody-web client by following the README.md.

Currently getting the following error 'Command "dev" not found.' From looking in the package.json looks like you are missing the dev script

"scripts": { "build": "node_modules/.bin/rimraf dist && tsc", "test": "node_modules/.bin/jest" }

Not sure if this is intentional, but I was wondering if the README.md needs updating. README.md currently states the following:

Running the service locally

Create your client/.env file - rename example.env -> .env for local development

yarn dev

Runs the front and back end app in development mode. This will run serverless in offline mode, and you will hit localhost endpoints.

sambowenhughes commented 4 years ago

Ahhh.

I was running the yarn dev command in the client directory. Thats why I couldn't find the script tag.