Skip to content

THIS IS THE REPO OF FRONTEND (REHBAR) DEVELOPER AND BACKEND DEVELOPER TRIES TO INTEGRATE EACH OTHER WORK USING API's

Notifications You must be signed in to change notification settings

Fareed95/RANDOM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RANDOM

THIS IS THE REPO OF FRONTEND (REHBAR) DEVELOPER AND BACKEND DEVELOPER TRIES TO INTEGRATE EACH OTHER WORK USING API's TO START BRO SEE LIst OF API ARE : SERVER : localhost:3000 ENDPOINTS :

  1. "formslist" #will show you json reponse of forms data.. available manipulations : GET AND POST
  2. "formslist/< int:pk >" #will show you data of a particular id ..to get of id 1 end point will be "formslist/1" available manipulations : GET, PUT AND DELETE
  3. "api/register" #will require a json data to register POST data
  4. "api/login" #will require a json data to login POST data
  5. "api/user" #will show the current logon user GET data
  6. "api/logout" #will logout user POST data

TO FETCH THEIR DATA YOU MUST USE "GET" request TO UPDATE THE DATA YOU MUST USE "POST" request

STARTUP :

  1. IF already created your super user then kindly login at endpoint "admin" and then proceed working...
  2. IF WANNA START COMPLETELY NEW .... 1. FORK MY REPOSITORY 2. Make a directory in your File explorer 3. OPEN YOUR TERMINAL / CMD navigate to your newly made directory 4. USE THIS FOLLOWING COMMANDS TO PERFECTLY CLONE THE REPOSITORY AND CAN WORK WITH ME
  • git init
  • git clone <your repository link>
  • git remote add origin <your repository link>
  • git checkout -b main
  • git pull origin main
  1. Now to run the backend server:
  • cd backend
  • pip install -r requirements.txt if macbook user pip3 install -r requirements.txt
  • python manage.py makemigrations if macbook user python3 manage.py makemigrations
  • python manage.py migrate if macbook user python3 manage.py migrate
  • python manage.py createsuperuser if macbook user python3 manage.py createsuperuser
  • ENTER YOUR CREDENTIALS...
  • python manage.py runserver if macbook user python3 manage.py runserver
  1. go to endpoint admin .. localhost:8000/admin and login using your super id credentials
  2. NOW YOU CAN ACCESS ALL API's

FOR NEW FRONTEND 1-cd frontend_new 2-npm run dev thats it .🙂

About

THIS IS THE REPO OF FRONTEND (REHBAR) DEVELOPER AND BACKEND DEVELOPER TRIES TO INTEGRATE EACH OTHER WORK USING API's

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published