Development Workflow - GauchoTools/GauchoCourses GitHub Wiki

Using the WebPack Development Server

From the frontend directory, run npm run serve. This will start a local development server at http://localhost:8080. This server will hot reload your changes to any files under frontend/ when you save them. By default, the development server will use the backend on the staging server. The configuration for this is in frontend/vue.config.js.

Running the backend locally

If you are making changes to the backend, you will probably want to run it locally so you can validate your changes. Run the commands below to start the backend server.

cd backend
mvn spring-boot:run

This will start the backend at http://localhost:8088. Notice that this port is different from the one used by the Webpack dev server.

Contributing to the frontend

  1. Create component
  2. Write tests
  3. Run tests
  4. Publish Branch, open Pull Request
  5. Repeat