Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cbe99/truecaller-clone

Repository files navigation

TrueCaller Clone

Getting Started

Prerequisites

  • Python 3.10
  • SQLite (or another relational database of your choice)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/your-repo.git
    cd your-repo
    
  2. Create and run an active environment

    python -m venv venv

    In windows:

    venv\Scripts\activate
  3. Install the dependencies with

    pip install -r requirements.txt
    
  4. Inside activated venv, you can run the application by

    python app.py
    

API Endpoints

Global users

  • Endpoint: /api/v1/users/all
  • Method: GET

User Registration

  • Endpoint: /api/v1/users/register
  • Method: POST

User Login

  • Endpoint: /api/v1/users/login
  • Method: POST

Contacts

Add Contact

  • Endpoint: /api/v1/users/<user-id>/contacts
  • Method: POST

Get User Contacts

  • Endpoint: /api/v1/users/<user-id>/contacts
  • Method: GET

Spam Management

Mark Number as Spam

  • Endpoint: /api/v1/spams
  • Method: POST

Get All Spam Numbers

  • Endpoint: /api/v1/spams
  • Method: GET

Search

Search Users by Name

  • Endpoint: /api/v1/search?q=<name>
  • Method: GET

Search Users by Phone Number

  • Endpoint: /api/v1/search?q=<phone-number>
  • Method: GET

About

Truecaller clone

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published