Coder Social home page Coder Social logo

Comments (2)

janwidmer avatar janwidmer commented on August 30, 2024

Hi @cesarpatrick,
Which versions are you using for?

  1. node
  2. angular
  3. spartacus
  4. spartacus-mock

Did you run ng add @valantic/spartacus-mock? Did it show any errors in the console?

We have just published version 3.1.0 of spartacus-mock, working with the latest mws version, spartacus 6.7.0 and angular 15. The latest version adds more automatically generated files to help you getting started.

Out of the box, all requests for the standard electronics store https://spartacus-demo.eastus.cloudapp.azure.com/electronics-spa/en/USD/ are mocked.

After a successful setup, you should have several files being generated, see here: https://github.com/valantic/spartacus-mock/blob/main/docs/getting-started/installation.md

If the schematics (running ng add @valantic/spartacus-mock) do not work for you, you can aswell just run npm i -d @valantic/[email protected] to install it and then copy / create the files manually.

You can also check this example project, this is how it should look like after the successful setup: https://github.com/janwidmer/spartacus-test-6.7.0/tree/main/src/mock-server. if you clone this test project, you should see spartacus-mock running:

  1. Checkout Repo
  2. Make sure, you run node version 18.18.0
  3. Run npm i
  4. Run npm run start
  5. Open Browser URL http://localhost:4200/electronics-spa/de/USD/

from spartacus-mock.

janwidmer avatar janwidmer commented on August 30, 2024

@cesarpatrick we have released another version having more detailed installation docs: https://valantic.gitbook.io/spartacus-mock/getting-started/installation

from spartacus-mock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.