Skip to content

thiraphat-ps-dev/InventoryManagementSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InventoryManagementSystem

InventoryManagementSystem with django & nextjs

Preview

info info

info

info

info

info

info

info

info

info

info

Installation

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

Setup Backend Server

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';

Setup Frontend Server

go to frontend directory

$ cd frontend

install dependencies

$ npm install

start server http://localhost:3000/

$ npm run dev