At this stage we will be fetching data from a API server, please follow the instructions to run the API server here.
Then, in order to run the WebApp:
-
Go to project folder and run
npm install
-
Then, run
gulp
to start a development server or you can also go to the dist foldercd dist/
and start up a simple HTTP server, Python is a good option:- If you have Python 2.x, spin up the server with python -m SimpleHTTPServer 8000 (or some other port, if port 8000 is already in use.)
- For Python 3.x, you can use python3 -m http.server 8000.
Image resizing optimization script
I've included a npm script to resize and optimize project images you can run this script with:
npm run build-images