Skip to content

2gbeh/shopera

Repository files navigation

Logo

Peddle Technologies - Full-Stack Developer Assessment

TypeScript TailwindCSS Prisma PostgreSQL

Next JS Vercel

Installation

$ git clone https://github.com/2gbeh/shopera.git

$ cd shopera

$ npm cache clean --force

$ npm install

$ npm run dev

Usage

Development: (client) http://localhost:3000/ (server) http://localhost:3000/api/

Production 🚀🚀🚀: (client) http://shopera.vercel.app/ (server) http://shopera.vercel.app/api/

API Documentation

Method Endpoint Query Body Summary
GET /products all (ASC order)
GET /products/[product_id] one
⭐ GET /products/?like=[search] x search (product, brand or barcode)
⭐ GET /products/validate-barcode/[barcode] validate upc-12 barcode
POST /products x add
PATCH /products/[product_id] x update
PUT /products/[product_id] x replace
DELETE /products/[product_id] soft delete (trash)
⭐ DELETE /products/[product_id]/?undo=true x undo delete (restore)
Method Endpoint Query Body Summary
GET /brands all (ASC order)
GET /brands/[brand_id] one
POST /brands x add
PATCH /brands/[brand_id] x update
PUT /brands/[brand_id] x replace
DELETE /brands/[brand_id] soft delete (trash)
⭐ DELETE /brands/[brand_id]/?undo=true x undo delete (restore)

Tech Stack Documentation

Screenshot

Screenshots

Page 1 (Product Listing)

Screenshot

Page 2 (Edit Product Listing)

Screenshot

Page 1 - Mobile (Product Listing)

Screenshot

Page 2 - Mobile (Edit Product Listing)

Screenshot

Screenshot

Known Issues

Added the .env file to .gitignore but it did not exclude it, I think it is related to Prisma ORM (not sure).

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy