Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You also need to run the Proposal launchpad every time you start the proposal system. After the frontend and backend are started and a ‘warming up’ period (up to a few minutes), the app should now be up and running. To connect, sign in on http://localhost:9003, and select the link to the new proposal system. If all has gone well, it should load a similar page to: https://devproposal.facilities.rl.ac.uk/.

You may also need to run clam-antivirus antivirus container this can be started by fba-compose up clam-antivirus

If so, congratulations! (big grin) You’ve got the Proposals site running on your local machine!

...

  1. Ensure the user-office-core is cloned into windows 'C:\Programming\user-office-core'.

  2. Open theIn docker-compose.yml file in your local docker-ochestration repo.

  3. In the environment variables section for duo-backend, ensure the DEPENDENCY_CONFIG environment variable is set to e2e and uncomment the section required to run e2e tests.

  4. In the yaml forcypress-dev-auth-server, add:
    ports:
    - 5700:5000

  5. Run fba-compose -f /mnt/c/programming/docker-orchestration/docker-compose.e2e.yml up -d duo-frontend

  6. In ‘apps\e2e\cypress.config.ts’ update the DEV_AUTH_SERVER_URL to 'http://localhost:5700' and baseUrl to 'http://localhost:8081'

  7. Replace the SDK in the frontend with the frontend in the linux environment (from'\\wsl.localhost\Ubuntu-20.04\home\<user_name>\repos\user-office-core\apps\frontend\src\generated' to 'C:\Programming\user-office-core\apps\frontend\src\generated').

  8. Run npm install in user-office-core.

  9. Remove and restart the backend container. (fba-compose rm duo-backend and fba-compose -f /mnt/c/programming/docker-orchestration/docker-compose.e2e.yml up -d duo-frontend).

  10. Make sure Cypress is installed in Windows, using npm install cypress --save-dev.

  11. Run npm run cy:open within e2e which will prompt the Chrome window to run the tests.

...