Repository containing the code for the final project for the [STAT-694] Data Management for Advanced Data Science Applications course at Rutgers University - New Brunswick, during the Spring 2023 semester.
Please use Python 3.9 to run this code, preferably 3.9.13.
- In a terminal, type the following: "pip install -r requirements.txt"
- Download PostgreSQL. Open the application and make sure the server is running.
- Go to utils > twitter-users.ipynb and run the file. Give your system's username when prompted. Please make sure that the file 'corona-out-3' is added to the utils folder prior to running the file.
- Go to utils > tweets_to_mongoDB.ipynb and run the file. This is suggested to check the connection to the MongoDB cluster.
- In the terminal, type: "cd src". This command allows you to change the working directory to the 'src' folder.
- Type this command in the terminal to start the API server: "python -m uvicorn main:app --reload" or "python main.py"
- Go to http://127.0.0.1:8000/docs to make a search.