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 :
- "formslist" #will show you json reponse of forms data.. available manipulations : GET AND POST
- "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
- "api/register" #will require a json data to register POST data
- "api/login" #will require a json data to login POST data
- "api/user" #will show the current logon user GET data
- "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 :
- IF already created your super user then kindly login at endpoint "admin" and then proceed working...
- 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
- Now to run the backend server:
cd backend
pip install -r requirements.txt
if macbook userpip3 install -r requirements.txt
python manage.py makemigrations
if macbook userpython3 manage.py makemigrations
python manage.py migrate
if macbook userpython3 manage.py migrate
python manage.py createsuperuser
if macbook userpython3 manage.py createsuperuser
- ENTER YOUR CREDENTIALS...
python manage.py runserver
if macbook userpython3 manage.py runserver
- go to endpoint admin .. localhost:8000/admin and login using your super id credentials
- NOW YOU CAN ACCESS ALL API's
FOR NEW FRONTEND
1-cd frontend_new
2-npm run dev
thats it .🙂