Skip to content

amritkv/fetch_api_and_save_data_in_db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to run the application :

Step - 1 : Install mongodb, python 3.x

Step - 2 : Open cmd/terminal and run mongodb using mongod command

Step - 3 : Create a python virtual environment using python -m venv ./venv command

Step - 4 : Activate the virtual environment -->

    1. ./venv/Sripts/activate.ps1 (for power shell)
    2. ./venv/Sripts/activate (for cmd/terminal)

Step - 5 : Install the required packages --> python -m pip install -r requirements.txt

Step - 6 : Run python run.py

Step - 7 : Hit the url localhost:5000/fetchAndSaveUsersData to fetch and save users data into mongo db

Step - 8 : Hit the url localhost:5000/fetchAndSaveUsersPostData to fetch and save users post data based on user-id obtained from last step

About

This is python project to fetch apis using unique auth id and save received data into mongodb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published