- Install:
-
Clone the repo:
git clone https://github.com/Kundestyrt-Gruppe-10/Purefolio-webapp.git
-
Go into the repo
cd Purefolio-webapp/
-
Install dependencies
npm i
- Developing locally is done with
webpack-dev-server
and is run on port 3000. - Hot reload and history API fallback are enabled by default.
Command:
$ npm start
To use production backend instead of running a backend locally use:
$ npm run start:prod
Command:
$ npm run build
If the build process seems to be slower than it should you can run the following command to analyze where bottlenecks might occur.
$ npm run build:measure
Performance budget has been enabled for the application. If you get warnings about bundle size when building you have exceeded the build size set by the budget. Consider use of code splitting or analyze your bundle with the following command
$ make analyze