Web App

Project Setup

Prerequisites

SoftwareVersion
Node.js16.X.X
DockerX.X.X

Steps

1. Install npm

# install dependencies
$ npm install

2. Update env

Create a new .env file if it already does not exist and then copy all data from .env.dev to this new file.

3. Download VPN

  • Download VPN from here
  • And install it.

4. Start VPN

  • Start the VPN
  • Enter the url sesame.support.toolstation.com
  • For username & password check project credentials or contact your reporting manager.
  • If you are connected to the VPN you will be able to access this site https://www.gke.pre-prod.toolstation.dev/

5. Register to dev Site

  • Once you have registered and logged in, open the developers tools in your browser
  • Go to the Applications tab
  • From the sidebar open cookies tab
  • Here look for the customer-jwt and select it.
  • Copy the cookie value Get Cookie
  • Use any online cookie decoded such as https://amp.urldecoder.org/dec/cookie/
  • You will decode json would be something like this
    {
      "value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjdXN0b21lcl9pZCI6IkNXVzE4ODMzMDgyIiwibmJmIjoxNjY2OTYzMDk2LCJleHAiOjE2NjcyMjIyOTZ9.Axn0jZZrb1ljP5RThkBV6S3PEblkAvRzqxA5yS2zIsM",
      "expiryTimestamp":1667225896
    }
    
  • Copy the value property, this is the JWT token which will be used login to your localhost.

8. Run command

npm run dev

9. Login to your local system

  • Once the server is up, you will get the url on which the local environment is running
  • Go to the URL, and paste the JWT token to input box and click the button next to it Paste Token In Local
  • The Sign In link in header will change to My Account if you are successfully logged in.

10. Change Timezone for git commits

To commit your changes on github repository, you have to change the timezone of your system to: (UTC +00:00) Dublin, Edinburgh, Libon, London


Copyright © 2026