A point of sales system made with NextJs, Prisma and CockroachDB.
I am using this project to learn more about Nextjs and how SSR and ISR works. This is my first time overall to using the next environment.
- Record products with barcodes or not.
- Creates and scans QR codes and barcodes using your smartphone.
- Track installments and Invoices.
- I saw that using an api barcode databases are not free and if they are, they have a limited bandwidth.
- Well this is self explanatory. Since I want to learn Next and what's so special about it, I tried making an app and possibly switch to it if I came to love it.
This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
The API uses the following libraries :
"@prisma/client": "^4.9.0",
"bcryptjs": "^2.4.3",
"next-auth": "^4.18.7",
API routes can be accessed on http://localhost:3000/api. This endpoint can be edited in pages/api/*
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
- Logo
- optimize addProduct on
/api/product.ts
. It takes 1.5s to create a product - optimize installments on
/api/installment.ts
. It takes 500ms to create,update and delete an installment - css minify
- Qr code on generate barcode.
- loading screen when a Link is pressed
- edit product barcode on admin panel
- react double mounting on qr code (use current)