This project was generated with create-instantsearch-app by Algolia.
To run this project locally, install the dependencies and run the local server:
npm install
npm start
Alternatively, you may use Yarn:
yarn
yarn start
Open http://localhost:3000 to see your app.
-
Get the files needed for deployment with a static server by running this command.
npm run build
-
The static files will be created in a dist folder
-
Select dist folder as the directory for deployment
-
Deploy
NB: In case you run to a Uncaught ReferenceError: gtag is not defined.
Follow the following steps to solve the error
-
Check the index.html file generated in the dist folder.
-
You would see that the gtag() function of the Google Analytics as to change to a(). Hence, the reason for reference error raised in app.js file.
-
Modify the function name in the app.js file to a or change it in the index.html file in the dist folder
NB: If you are modifying it in the index.html in the dist folder, know that you will be modifying more than one line.