mycookbook / web-client

cookbookshq frontend

Home Page:https://web.cookbookshq.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

web_client

Web client for cookbook

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

Running Tests Locally

To run the end-to-end (E2E) tests locally, follow these steps:

Prerequisites

  1. Node.js: Ensure that you have Node.js installed on your machine. You can download it from the official website: https://nodejs.org/

  2. Dependencies: Install project dependencies by running the following command in your terminal at the root of the project:

    npm install
    
    

Running Tests

  1. Configuration: Make sure you have properly configured Nightwatch.js for your project. Check the nightwatch.conf.js file in the root directory.

  2. Run Tests: Execute the E2E tests using the following command:

    npm run test
    
    

Running Tests With Coverage

  1. Run Tests: Execute the E2E tests with coverage using the following command:

npm run test:e2e:coverage

Viewing Coverage (Optional)

If you're interested in viewing code coverage for the tests, follow these steps:

  1. Install Istanbul/NYC: Install the necessary packages by running:

    npm install nyc --save-dev
    

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

NOTES on running e2e locally

  • To install dependencies as described above, since the packages are already in the packagae.json file, simply delete the package-lock file first then update the npm version in the package.json file to 5.10.0 (DO NOT COMMIT THIS CHANGE)
  • Now run npm i --force
  • Finally to run the tests,
    • You need to use node version 16.10.0, you can swicth to this version with nvm
    • Open a new terminal and run npm run dev
    • In another terminal, npm run e2e

Staging url

https://cookbookshq-staging-web.herokuapp.com/#/

About

cookbookshq frontend

https://web.cookbookshq.com

License:Other


Languages

Language:HTML 72.4%Language:Vue 16.9%Language:JavaScript 6.7%Language:CSS 4.0%Language:Roff 0.0%