Skip to content

syukranDev/inventory_app

Repository files navigation

inventory_app

Local Front Setup:

Clone this repo and run npm install & npm run dev

Local Backend Setup:

Clone repo backend-inventoryapp and run npm install & npm run dev

PostrgreSQL Schema

TBA

Tech Stack

Backend: NodeJS, PostgreSQL on Supabase, private VPS.
FrontEnd: NextJS on top of React, ShacdnUI & more..

Test User:

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:

Permission CREATE, VIEW, UPDATE, DELETE applies on both users and inventory data.
>> You may setup accordingly to new user upon user-creation.

Misc:

>> 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:

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

Unit Test:

>> Head into backend_inventoryapp and install jest by `npm i -g jest`
>> Run `jest`

image

Screenshot (in order)

image Xnapper-2024-03-01-22 08 20 image image Xnapper-2024-03-01-22 09 16 Xnapper-2024-03-01-22 10 09 Xnapper-2024-03-01-22 10 47 Xnapper-2024-03-01-22 11 00 Xnapper-2024-03-01-22 11 20 Xnapper-2024-03-01-22 12 10

About

CRUD Webapps on Inventory Data (NextJS & NodeJS), made for client for his FYP.

Resources

Stars

Watchers

Forks