4-2 READMe

.docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

340

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

6

Uploaded by UltraCamelMaster345

CS 340 README Project One Project One: Austin Animal Center This application allows users access to a database of animals in the Austin Animal center to search and filter the database. It allows for easier searching for particular breeds, types, and other factors that might be beneficial to professional uses such as search and rescue. The project was requested by Grazioso Salvare and it is open source. Motivation This project was designed to show my abilities to handle database development and test my skills in programming and developing for the client’s requirements. Getting Started To get this program started, follow the following steps: 1. Utilize MongoDB using the command shell by selecting the destination where you want to import the file. Mine was /usr/local/datasets/ 2. Use the mongoimport tool and import the csv file aac_shelter_outcome.csv 3. Create an Admin account and a aacuser account to access the database. 4. Use a Python IDE to develop a script Installation Current versions of Python with Jupyter to run .py and .ipynb files. Current version of MongoDB and PyMongo. Usage Code Example A Create method that inserts a document into a specified MongoDB database and collection Input -> argument to function will be a set of key/value pairs in the data type acceptable to the MongoDB driver insert API call. Return -> “True” if successful insert, else “False”. Note: This template has been adapted from the following sample templates: Make a README , Best README Template , and A Beginners Guide to Writing a Kickass README .
A Read method that queries for document(s) from a specified MongoDB database and specified collection Input -> arguments to function should be the key/value lookup pair to use with the MongoDB driver find API call. Return -> result in cursor if successful, else MongoDB returned error message. An Update method that queries for and changes document(s) from a specified MongoDB database and specified collection Input -> arguments to function should be the key/value lookup pair to use with the MongoDB driver find API call. Last argument to function will be a set of key/value pairs in the data type acceptable to the MongoDB driver insert API call. Return -> result in JSON format if successful, else MongoDB returned error message. A Delete method that queries for and removes document(s) from a specified MongoDB database and specified collection Input -> arguments to function should be the key/value lookup pair to use with the MongoDB driver find API call. Return -> result in JSON format if successful, else MongoDB returned error message. Note: This template has been adapted from the following sample templates: Make a README , Best README Template , and A Beginners Guide to Writing a Kickass README .
Tests The script was tested by intentionally passing an invalid statement using values that should not be passed. The code successfully threw an exception and did not add the document. Screenshots Importing using MongoImport User Creation Note: This template has been adapted from the following sample templates: Make a README , Best README Template , and A Beginners Guide to Writing a Kickass README .
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help