GithubHelp home page GithubHelp logo

medita_api's Introduction

medita_api

How to run the api ?

Install Requirments

Database configuration

  1. Install MySQL Server & Workbench
  2. make you server user name = root
  3. make your server password = 48259665a
  4. create database called 'medita_db'

Enviroment Configuration

  1. download python version 3.9.13
  2. install virtual env python lib in your python version

pip install virtualenv

  1. clone the repository
  2. move to the root dir

cd medita_api

  1. open the terminal and write this command

virtualenv venv

  1. after create the virtual enviroment run this command to activate it

venv\Scripts\activate

  1. the run this command

pip install -r requirements.txt

  1. migrate the database

py manage.py migrate

  1. then run this command

py manage.py run server

Importent Step

Use Ngrok to deploy the api in the web to access it in the mobile app (Localhost didn't work with the local app development) Now The server is open

Base url = "127.0.0.1:8000" this is the local ip of your computer

Endpoints

Authentication apis

  • authentication/user-register || Post Data => {"email" : "", "password": "", "first_name", "last_name"}
  • authentication/login || Post Data => {"email" : "", "password": ""}

clinic apis

  • url : clinic/add-banner || add banner || "Open The Link and add data manualy"
  • clinic/add-speciality || add medical speciality || "Open The Link and add data manualy"
  • clinic/add-favorite-doctor || add favorite davorite doctor || "Open The Link and add data manualy"
  • clinic/add-review || add review || "Open The Link and add data manualy"
  • clinic/add-hospital || add hospital || "Open The Link and add data manualy"
  • clinic/add-doctor || add doctor || "Open The Link and add data manualy", for mobile adding data testing send Post Request with {"doctor": "", "patient": ""} note that doctor is the "doctor id" and patient is the patient
  • clinic/list-banners || get all bannars
  • clinic/list-specialities || get all specialities
  • clinic/list-favorite-doctors || get all favorite doctors
  • clinic/list-hospitals || get all hospitals
  • clinic/list-doctors || git all doctors

medita_api's People

Contributors

ahmedbadr22 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.