Code Monkey home page Code Monkey logo

mongodb's Introduction

๐Ÿ“š README for MongoDB Export and FastAPI Project

๐Ÿ“„ Overview

This README file explains what is included in this submission for the MongoDB Export and FastAPI Project. It includes the exported MongoDB collections in JSON format, the FastAPI application code, and the MongoDB schema structure in JSON format.

๐Ÿ“ฆ Deliverables

  1. ๐Ÿ“ MongoDB_caseB_json.txt

    • This file shows the MongoDB schema structure in JSON format. It includes the structure of protein_info, protein_interaction, and organism_info collections.
  2. ๐Ÿ“ MongoDB_store.ipynb

    • This explains how the CSV data was stored in MongoDB. The provided Python scripts read the CSV files and stored the data in MongoDB collections.
    • Script to store CSV data in MongoDB
  3. ๐Ÿงฌ protein_info.json

    • This file has the data from the protein_info collection in the Assignment_B MongoDB database.
    • Comes from Protein_Information.csv
    • Command used to export:
      mongoexport -d Assignment_B -c protein_info -o protein_info.json
      
  4. ๐Ÿ”— protein_interaction.json

    • This file has the data from the protein_interaction collection in the Assignment_B MongoDB database.
    • Comes from Interaction_Data.csv
    • Command used to export:
      mongoexport -d Assignment_B -c protein_interaction -o protein_interaction.json
      
  5. ๐ŸŒ organism_info.json

    • This file has the data from the organism_info collection in the Assignment_B MongoDB database.
    • Comes from Organism_Information.csv
    • Command used to export:
      mongoexport -d Assignment_B -c organism_info -o organism_info.json
      
  6. ๐Ÿš€ caseB_fastApi.py

    • This file has the FastAPI application code. The app has endpoints to get protein details, interactions, and proteins and interactions for a specific organism.
    • Main endpoints:
      • /protein/{protein_id}: Get details of a specific protein.
      • /protein/{protein_id}/interactions: Get all interactions for a specific protein.
      • /organism/{organism_id}/proteins: Get all proteins and their interactions for a specific organism.

โš™๏ธ Instructions for Running FastAPI Application

  1. Set up the environment:

    • Install the required packages:
      pip install fastapi 
      
  2. Run the FastAPI application:

    • Before running the FastAPI, make sure the Python file is in the correct path.
    • Use this command to run the application:
      fastapi dev caseB_fastApi.py
      
  3. Access the API:

    • You can find the API documentation at http://127.0.0.1:8000/docs#/.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.