This should create the directory ```build```, containing the file ```index.html```. This file is the entry point for your web application. Depending on your environment (operating system, browser, etc), this file might be able to be opened by your browser.
This should create the directory ```build```, containing the file ```index.html```. This file is the entry point for your web application. Depending on your environment (operating system, browser, etc), this file might be able to be opened by your browser.
\ No newline at end of file
# Deployment
The file ```.gitlab-ci.yml``` is used by GitLab to create [CI/CD jobs](https://docs.gitlab.com/ee/ci/). This can be used to build, test and deploy your app. The current ```.gitlab-ci.yml``` file is set to build and deploy the app when you push to any branch. The latest pipeline can be found on ```project/-/pipelines/latest``` (for example https://gitlab.liu.se/simto05/react-proof-of-concept/-/pipelines/latest). The deployed page can for this instance be found on https://simto05.gitlab-pages.liu.se/react-proof-of-concept/.
A slight modification was made to the file ```package.json``` in directory ```app/``` because of GitLab CORS policy: the key ```homepage``` was set to "." to inform ```create-react-app``` that static files are located relative to the ```index.html``` file. This modification should work for most servers, but may vary with different setups.