PageSourceSearch

https://docs-pactflow-preview.netlify.app/assets/js/2817aff0.041e15a4.js

js docs-pactflow-preview.netlify.app collected 2026-10-03 10:41:43 UTC 4,919 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpartners=self.webpackChunkpartners||[]).push([[20774],{15680:(e,t,n)=>{n.d(t,{xA:()=>i,yg:()=>y});var r=n(96540);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),s=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):p(p({},t),e)),n},i=function(e){var t=s(e.components);return r.createElement(l.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,i=c(e,["components","mdxType","originalType","parentName"]),u=s(n),m=o,y=u["".concat(l,".").concat(m)]||u[m]||d[m]||a;return n?r.createElement(y,p(p({ref:t},i),{},{components:n})):r.createElement(y,p({ref:t},i))}));function y(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,p=new Array(a);p[0]=m;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c[u]="string"==typeof e?e:o,p[1]=c;for(var s=2;s<a;s++)p[s]=n[s];return r.createElement.apply(null,p)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},83641:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>p,default:()=>d,frontMatter:()=>a,metadata:()=>c,toc:()=>s});var r=n(58168),o=(n(96540),n(15680));const a={id:"run-the-applications",title:"Run the applications"},p=void 0,c={unversionedId:"docs/workshops/ci-cd-legacy/set-up-local-development/run-the-applications",id:"docs/workshops/ci-cd-legacy/set-up-local-development/run-the-applications",title:"Run the applications",description:"Start up the provider API by running npm run start, note the terminal output.",source:"@site/docs/docs/workshops/ci-cd-legacy/set-up-local-development/02_run_the_applications.md",sourceDirName:"docs/workshops/ci-cd-legacy/set-up-local-development",slug:"/docs/workshops/ci-cd-legacy/set-up-local-development/run-the-applications",permalink:"/docs/workshops/ci-cd-legacy/set-up-local-development/run-the-applications",draft:!1,editUrl:"https://github.com/pactflow/docs.pactflow.io/edit/master/website/docs/docs/workshops/ci-cd-legacy/set-up-local-development/02_run_the_applications.md",tags:[],version:"current",lastUpdatedBy:"Yousaf Nabi",lastUpdatedAt:1664990230,formattedLastUpdatedAt:"Oct 5, 2022",sidebarPosition:2,frontMatter:{id:"run-the-applications",title:"Run the applications"},sidebar:"university",previous:{title:"Install dependencies",permalink:"/docs/workshops/ci-cd-legacy/set-up-local-development/install-dependencies"},next:{title:"Run the consumer tests",permalink:"/docs/workshops/ci-cd-legacy/set-up-local-development/run-the-consumer-tests"}},l={},s=[],i={toc:s},u="wrapper";function d(e){let{components:t,...n}=e;return(0,o.yg)(u,(0,r.A)({},i,n,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("p",null,"Start up the provider API by running ",(0,o.yg)("inlineCode",{parentName:"p"},"npm run start"),", note the terminal output."),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"> [email protected] start\n>
1 node server.js\n\nProvider API listening on port 8080...\n")),(0,o.yg)("p",null,"Open a separate terminal for the consumer."),(0,o.yg)("p",null,"Before starting the consumer, we need to configure it so it knows the address of our running provider."),(0,o.yg)("p",null,"create a ",(0,o.yg)("inlineCode",{parentName:"p"},".env")," file in the root of the project and add:"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-bash"},"REACT_APP_API_BASE_URL=http://localhost:8080\n")),(0,o.yg)("p",null,"Then run:"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-bash"},"npm run start\n")),(0,o.yg)("p",null,"Open ",(0,o.yg)("a",{parentName:"p",href:"http://localhost:3000"},"http://localhost:3000")," in your browser. You should see a list of products."))}d.isMDXComponent=!0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.