GithubHelp home page GithubHelp logo

musawir-ap / social-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 42 KB

RESTful API designed to streamline user interactions within a social networking context.

Python 96.81% Shell 0.99% Dockerfile 2.20%

social-api's Introduction

SocialAPI

SocialAPI is a RESTful API designed to streamline user interactions within a social networking context. It simplifies the process of user authentication and provides a suite of features to manage friendships and search capabilities within the network.

Overview

The API offers the following features:

  • User Authentication
  • User Search
  • Friend Requests
  • Friend List
  • Pending Requests
  • Rate Limiting

Installation

To get started with SocialAPI, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Musawir-ap/social-api.git
  2. Navigate to the project directory:

    cd social-api
  3. Build and start the Docker containers:

    docker-compose up --build

The application will be accessible at http://localhost:8000.

Note: This repository includes a .env file to facilitate easy installation and testing of the API. Please ensure to update the .env file with your own environment variables before deployment.

Sample Data

The database comes pre-loaded with sample data for users and tokens to aid in testing. Check the /api/fixtures/ directory for details.

Testing

To test the API endpoints, import the Social-API.postman_collection.json file from the root directory into Postman.

Usage

Once the project is set up, you can:

  • Login: Authenticate with your email and password.
  • Signup: Register a new account using your email.
  • Search Users: Find users by email or name.
  • Manage Friend Requests: Send, accept, or reject friend requests.
  • List Friends: View your list of friends.
  • View Pending Requests: Check pending friend requests.

Contributing

We welcome contributions from everyone. Feel free to fork the repository, make your changes, and submit a pull request. If you find any issues or have suggestions for improvements, please open an issue in the tracker.

social-api's People

Contributors

musawir-ap avatar

Stargazers

 avatar

Watchers

 avatar

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.