Abbhiishek / Sociome

Sociome is a Social Media Api

Home Page:https://stormy-peak-47838.herokuapp.com/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome ๐Ÿ‘‹

Sociome is a API DEVELOPMENT PROJECT UNDER CODE FOR COMMUNITY ! capable of CRUD operation and this api is specific with Social Media Application Functionalities.

Python application View Project View Project View Project View Project View Project

Tech-Stacks Used ๐Ÿ”ฎ

python FastApi sqlalchemy git postgresql postman docker heroku

Project Walkthrough ๐Ÿš€

  • Sociome run on Python using FASTapi Framework Docs
  • The project is under the Guidance of Abhishek Kushwaha

Installation โ˜˜๏ธ

  • To install The Fastapi on the system

    pip install fastapi
    
  • To install all the dependiencies at once use :

    pip install fastapi[all]
    
  • Run the server in LocalHost:

    uvicorn main:app --reload
    
  • Open your browser at !

    http://127.0.0.1:8000/
    
  • Interactive API doc

    http://127.0.0.1:8000/docs 
    

Sample code ๐Ÿ› 

import datetime
from typing import Optional
import time
from datetime import date, time,datetime
from fastapi import FastAPI

app = FastAPI()


@app.get("/")
def read_root():
    return {"Messgaes": "Hey viewer ! i made it man !","Author":"Abhishek Kushwaha"}


@app.get("/items/{item_id}")
def read_item(item_id: int, q: Optional[str] = None):
    return {"item_id": item_id, "q": q}

@app.get("/author/{author_id}/{q}")
def read_item(author_id: int, q: Optional[str] = None):
    return {"item_id": author_id, "request": q ,"name":"Abhishek kushwaha"}

๐Ÿ™ Support

-This project needs a โญ๏ธ from you. Don't forget to leave a star โญ๏ธ

-Follow me here โœจ

-Contributions to the project are most welcome! ๐Ÿ˜Š

-Feel free to fork this repo and contribute. ๐Ÿ”ง

-Thank You!๐Ÿ‘

About

Sociome is a Social Media Api

https://stormy-peak-47838.herokuapp.com/docs

License:MIT License


Languages

Language:Python 98.1%Language:Mako 1.7%Language:Procfile 0.2%