/api
- PHP > 5.6 (with Composer installed)
php composer.phar install
/frontend
- Node >= 10
- You will need to host the
/api
folder yourself. Change the environment variableVUE_APP_PNEUMONIA_LIVE_DATA
to the url you are hosting.
.env
>VUE_APP_DOMAIN
.env
>VUE_APP_CONTEXT
Go to /frontend
folder and run the following command:
npm install
npm run dev
Go to /frontend
folder and run the following command:
npm run build
dist
- API will need to set
Access-Control-Allow-Origin: http:localhost:8080
orAccess-Control-Allow-Origin: *
to allow prerender - To wait for API loading finish, prerender is set to capture HTML after
.page-content
is found