Frontend Client - Product listing from ElasticSearch with Frontend in: React, Typescript, react-async
- Install Node.js version 12.16.1 or later
https://nodejs.org/en/download/
.
$ git clone https://github.com/jim-arbete/frontend-productsearch.git productlistingfrontend
$ cd productlistingfrontend
$ npm install
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Run npm run build
to build the project. The build artifacts will be stored in the build/
directory.
- Try out the build with npm serve.
- Install serve
npm i serve -g
- And run:
$ cd build/productlistingfrontend
$ serve -l 5000