Dataset Link : https://www.kaggle.com/jiashenliu/515k-hotel-reviews-data-in-europe/home
Approach 1 folder contains UI components developed in Node.js, MongoDB and HTML/CSS
Approach 2 folder contains UI & python script to run the application
256 Project Notebook contains complete code of project for both the approaches.
- Install node from https://nodejs.org/en/ and mongo database from https://docs.mongodb.com/master/administration/install-community/
- Unzip the zip file we uploaded on Canvas to any folder
- Navigate to the folder you downloaded
- Run “npm install” to install all needed npm modules
- Run “npm start” command to start node server
- Start mongo database with the mongod command
- Add the hotel instances to the database by pasting below url into browser http://localhost:3000/addcombined Note: If you accidentally add twice you can drop the database using the Mongo shell (use hotel DB and then db.dropDatabase()
- Access main screen on below URL http://localhost:3000
- Test by checking out various combinations
- Install hotelrecommendations/Approach2_UI/requirments.txt using below command pip install -r hotelrecommendations/Approach2_UI/requirements.txt
- Modify the path to read the csv file in hotelrecommendations/Approach2_UI/app.py for example df = pd.read_csv(path where you have stored the csv file)
- To run the app type command python app.py To view the webpage go to http://127.0.0.0:5000