Local Front Setup:
Clone this repo and run
npm install&npm run dev
Local Backend Setup:
Clone repo
backend-inventoryappand runnpm install&npm run dev
TBA
Backend: NodeJS, PostgreSQL on Supabase, private VPS.
FrontEnd: NextJS on top of React, ShacdnUI & more..
Login in 'admin' to get view all the pages available including CRUD screen.
Role Admin (username:password) === admin:test@123 (grants all permission)
Login in 'guest' to get view limited screen available.
Role Guest (username:password) === guest:test@12345 (limited permission)
NOTE: You may create new user or change existing user to test permission features.
Permission CREATE, VIEW, UPDATE, DELETE applies on both users and inventory data.
>> You may setup accordingly to new user upon user-creation.
>> Populate Data button can be seen by user with roles = 'admin' only'
>> For the sake of simplicity and time constraint,
- All backend API is unprotected. No JWT token needed.
- Password is non-hashed.
- Static inventory image is used for all data.
- Sorting is applies to listing API but not in UI. (FIXED, inventory listing UI only)
- Dark mode & mobile is not maintained, light mode & desktop view is recomendded.
API Nodejs Codebase can been seen in repo called `backend-inventoryapp`
>> api/inventory/list
>> api/inventory/o/:id
>> api/inventory/update/:id
>> api/inventory/add
>> api/inventory/delete/:id
>> api/inventory/populate
>> Head into backend_inventoryapp and install jest by `npm i -g jest`
>> Run `jest`










