[Vuejs]-How to use loopback with nuxt js?

0👍

you can do it yourself as follows:

  1. Install Loopback globaly npm install -g loopback-cli and run loopback creator in terminal lb
  2. Go to project folder from creator and install nuxt npm i -S nuxt
  3. create nuxt.config.js with set srcDir
  4. change loopback port in /server/config.json on 8080
  5. To run api with app toghether install concurrently devDependencie and edit package.json "start": "concurrently \"nuxt\" \"node .\"",

Your nuxt app should be run on port 3000 and loopback on 8080.

Leave a comment