Giter Site home page Giter Site logo

arts-store's Introduction

Art Store

Ecommerce website to showcase arts boards and paintings

Features

  • Users can view all products, view product details, add product to cart, remove product from cart and view cart.
  • Admin can see all products, either add a new one, remove or update it from a dashboard.
  • Login and Register through (Google or Credentials)
  • Search (debounced functionality)
  • Pagination
  • Image upload to https://uploadthing.com (! i have changed it, since it does not work on the production build locally)
  • Responsive design

Tech Stack

  • Next.js 14 (App Router)
  • Shadcn/ui
  • React Hook Form
  • NextAuth.js
  • Zod
  • Zustand
  • GraphQL
  • Apollo Client
  • Hasura

Usage


0. Run `npm i`

1. `Rename `.env.local.example` to `.env.local` and `.env.example` to `.env`

2.1 If you decided to use the provided Hasura Cloud API, provided on notion, you must init the db,  follow the steps below:

2.1.1 Copy the SQL script content from `/src/services/seed/tables.sql` and run it on the Hasura Console.

2.1.2 then from the root directory, run `npm run seed:products` to seed the `products` table and run `npm run seed:admin` to seed `admin` in the `users` table.

2.2 If you decided to use my own Hasura Cloud API defined in the `.env`, you can skip the above steps since the db is already seeded.


3. lastly, run `npm run build` and last `npm run start`

Screenshots

Hero Section

Products

Dashboard

Mobile Main

Other Screenshots

Product Details

Add Product

Edit Product

DElete Product

User Flow - Sequence Diagram

User Flow

ER Diagram

DB ER

THE END

arts-store's People

Contributors

sbb3 avatar

Watchers

 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.