Git Product home page Git Product logo

megane-next's Introduction

Megane

A point of sales system made with NextJs, Prisma and CockroachDB.

About the project:

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.

Features

  1. Record products with barcodes or not.
  2. Creates and scans QR codes and barcodes using your smartphone.
  3. Track installments and Invoices.

Goals :

1. Creates a database of products that is easily accessible.

  • I saw that using an api barcode databases are not free and if they are, they have a limited bandwidth.

2. Learning next js

  • 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.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Starting the server

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.

API Routes

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.

To do:

  1. Logo
  2. optimize addProduct on /api/product.ts. It takes 1.5s to create a product
  3. optimize installments on /api/installment.ts. It takes 500ms to create,update and delete an installment
  4. css minify
  5. Qr code on generate barcode.
  6. loading screen when a Link is pressed
  7. edit product barcode on admin panel
  8. react double mounting on qr code (use current)

megane-next's People

Contributors

blueguy0301 avatar renossance avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.