InventoryManagementSystem with django & nextjs
Download and install Node.Js for install package.
Install Python3
$ npm install python
Install pip
$ npm install pip
Create venv python3 with command
$ python3 -m venv ./venv
Activate venv
$ source venv/bin/activate
go to backend and migrate database
$ cd backend
$ python manage.py migrate
install requirement
$ pip install -r requirements.txt
createsuperuser
$ python manage.py createsuperuser
runserver
$ python manage.py runserver
login django-admin http://localhost:8000/admin
create you application http://localhost:8000/o/applications/
Client type : confidential Authorization Grant Type : password Redirect Urls : http://localhost:8000
go to InventoryManagementSystem/frontend/pages/api/index.js to set you clientId and clientSecret
export const clientId = 'your clientid';
export const clientSecret = 'your clientsecret';
go to frontend directory
$ cd frontend
install dependencies
$ npm install
start server http://localhost:3000/
$ npm run dev