- Clone the repository:
git clone https://github.com/Satyam-79/BCCP-ITS_SIH.git
- Change to the project directory:
cd BCCP-ITS_SIH
- Change to the backend directory:
cd backend
- Install backend dependencies:
pip install -r requirements.txt
- Change to the frontend directory:
cd ..\frontend
- Install frontend dependencies:
npm install
-
Start the Django development server:
cd backend python manage.py runserver
-
In a separate terminal, start the React development server:
cd frontend npm start
-
Open your browser and visit:
http://localhost:8000
url: product-create/
{
"name":"Boxes",
"description":"Cardboard boxex of size 3x4x3",
"tags":["cardboard","Wooden Box"]
}
with auth token in the header
url: register/
email:[email protected]
password:pY8JFRzCUPD4m9f
password2:pY8JFRzCUPD4m9f
customer:False
first_name:user
last_name:two
url: login/
{
"email":"[email protected]",
"passsword":"*******",
}
url: login/refresh/
{
"refresh":"Refresh Token"
}
url: logout/
"refresh_token":"refresh token"
url: products/
url: product/<str:pk>/