Project of course Basi di Dati II - University of Salerno.
Which side are you on? Dogs or cats? 🐶 🐱
With Pet Tips there is no difference! Filter the dogs or cats according to your needs and add it to your favourite collection. You will be surprised at how many dog and cat breeds exist 👀.
This repository contains:
- data_cleaning_scripts: all scripts used to create the Dog Breeds dataset and Cat Breeds dataset contained in dataset folder. Refer to sub-folder cleaned_datasets for the final dataset obtained.
- statistic_analysis_scripts: all scripts used to do descriptive statistics on Dog Breeds dataset and Cat Breeds dataset. The resulting plots are in plots folder.
- webapp: the folders for backend and frontend realized using the MERN (MongoDB, Express, React, Node.js) stack.
To build and run this project you should install:
Follow the next steps:
-
Clone this repository
-
Create a new database in MongoDB. Create a Dogs collection and a Cats collection using data from the dog_breeds.csv and cat_breeds.csv files located in the dataset/clenaed_dataset folder.
-
Create a .env file into path webapp/backend/ with follow content:
PORT = choose_a_port_number (recommended 4001)
MONGO_URI = paste_url_to_database
SECRET_KEY = insert_a_key -
Open a new terminal in webapp/backend path and run:
npm install
npm start
-
Open a new terminal in webapp/frontend path and run:
npm install
npm start
-
(Optionally) If you choose a PORT number different to 4001 in 3rd step, you must change the proxy field in the package.json located in webapp/frontend path.
-
(Optionally) If you will be an admin user, you should change the role field of the user in Users collection after the signup into application.
Dataset sources:
This project is distributed under the GNU General Public License v3.
