Allows the public to browse the buying catalogue.
- Node 14
Install the long-term support (LTS) version of Node.js, which includes NPM.
git clone https://github.com/nhs-digital-gp-it-futures/public-browse.git
cd public-browse
npm install
npm run build
- Unit Tests -
npm run test
- Integration Tests -
npm run test:integration
Update the cluster to disable pb via the cluster and a disabledUrl is set. In you local-overrides.yaml
it will look something like this;
pb:
enabled: false
disabledUrl: "http://localhost:3000/"
All environment variables are provided a default to work with your local cluster in config.js
except;
OIDC_CLIENT_SECRET
and COOKIE_SECRET
Update your .env file in project root with values that are mentioned below:
NODE_ENV=development
LOGGER_LEVEL=debug
OIDC_CLIENT_SECRET=SampleClientSecret
COOKIE_SECRET=secret squirrel
Run the app with npm run start:dev
Application should now be running on http://localhost:3000.
Create a .env
file in the root of the project.
Look at the Dependencies
section to run each app on your local machine.
Update the .env
file to point to dependencies
Start local redis in your terminal run npm run start:redis
this will run your local redis on port 6380
Add REDIS_PORT=6380
to you .env
file
On a seperate terminal run the app with npm run start:dev
Application should now be running on http://localhost:3000.
Buying Catalogue API. Document API. Identity Server.
Moved to ingress v1 configuration