diff --git a/.env b/.env new file mode 100644 index 0000000..d5ef0b7 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +ALGOLIA_APP_ID=3UQJTGS4TA +ALGOLIA_SEARCH_KEY=26d5a8334696b8a727c05c055a34c763 +ALGOLIA_INDEX_NAME=test_WINE_REVIEWS diff --git a/.env.dist b/.env.dist deleted file mode 100644 index 67758d2..0000000 --- a/.env.dist +++ /dev/null @@ -1,3 +0,0 @@ -ALGOLIA_APP_ID= -ALGOLIA_SEARCH_KEY= -ALGOLIA_INDEX_NAME= diff --git a/.gitignore b/.gitignore index e8d6ca1..56aba49 100644 --- a/.gitignore +++ b/.gitignore @@ -58,5 +58,3 @@ buck-out/ # Bundle artifact *.jsbundle - -.env diff --git a/README.md b/README.md index 17dbe98..5746a49 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,17 @@ -# Formation algolia +# Algolia and react native -`react-native init APP --template typescript && node APP/setup.js` -`cd APP` -`git init` : premier commit à faire +You can find the tutorial on [this website](https://blog.bam.tech/developper-news/how-to-integrate-the-powerful-algolia-search-engine-in-your-react-native-app) -Ensuite go sur kaggle for [dataset](https://www.kaggle.com/zynicide/wine-reviews/version/4) +The dataset is available on kaggle [here](https://www.kaggle.com/zynicide/wine-reviews/version/4). -Créer un compte sur algolia, créer un nouvel indice à la main, voir comment ca marche +If you want a file of 10.000 lines only, it's available [here](https://gist.github.com/ajubin/d331f3251db4bd239c7a1efd0af54e38) -50MB max upload => couper le fichier -npx json-split --json=../../winemag-data-130k-v2.json --line=50000 -upload files separately +## Installation -mv .env.dist .env et mettre vos informations +Assuming that Xcode and react native are already installed, you should run the following commands : + +```bash +$ yarn +$ cd ios && bundle exec pod install && cd .. +$ react-native run-ios +```