To start developing run npm dev
. This should open a local server on port 3000 and generate the application. Since we are using webpack, we have CSS/JS hot reloading. Changes should be pushed to the browser.
To test a production build run npm run production
. This will create a build (minified, uglified) and start a simple Node.js server. POST requests with data
to :8001/pdp
will be converted into JSON props. The request should return static markup with external CSS and JS Build files reflecting the passed props.
Note: Fame website and the Frontend Microservice are run side by side.
.env
file from the Fame website repo (not this repo) add this line NODE_CONTENT_URL='http://localhost:8001'
and save it;app
folder;npm install
to get all dependencies;npm run dev
to start it.