- Install MySQL Server & Workbench
- make you server user name = root
- make your server password = 48259665a
- create database called 'medita_db'
- download python version 3.9.13
- install virtual env python lib in your python version
pip install virtualenv
- clone the repository
- move to the root dir
cd medita_api
- open the terminal and write this command
virtualenv venv
- after create the virtual enviroment run this command to activate it
venv\Scripts\activate
- the run this command
pip install -r requirements.txt
- migrate the database
py manage.py migrate
- then run this command
py manage.py run server
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
- authentication/user-register || Post Data => {"email" : "", "password": "", "first_name", "last_name"}
- authentication/login || Post Data => {"email" : "", "password": ""}
- 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