Giter Site home page Giter Site logo

i-sviridov / clothing-store Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.34 MB

a full stack web clothing store app (incl. Next.js & Node.js & MongoDB)

Home Page: https://clothing-store-mu.vercel.app/

JavaScript 93.72% CSS 6.17% Shell 0.11%
nextjs nextauth material-ui nodejs mongodb bcryptjs framer-motion css react

clothing-store's Introduction

The Clothing Store Project

  • This is a full-stack app for a small online clothing store with authentication.
  • Website: https://clothing-store-mu.vercel.app/
  • Stack: React, Redux, Next.js, Material UI,  HTML, CSS, Framer Motion, Node.js, MongoDB, NextAuth, bryptjs

image

Description

Clothing Store is a full-stack application that is made with Next.js.

The application has an authentication, which is implemented via a custom form on the frontend and the NextAuth package on the backend. User input verification is handled both by the frontend and the backend, providing the best possible user experience for error handling. Should one not want to create a new account, there is a demo account "TestUser" available, and its credentials are shown as helper text below the input fields.

image

On the webpage, the user can use various filters to sort the items by price or category as desired. image

The user of an application can add items to the cart or mark them as favorites. Once the item is added to the cart, a new menu is opened, where one can check what is in the cart, adjust the quantity if needed, and place an order. If the user is authenticated, he will be redirected to the profile page; otherwise, the user has to enter his credentials since the profile route is protected.

image

Finally, on the profile page user can browse the orders that were previously placed as well as change the current password and logout. User input verification regarding the old and new passwords is done both by the frontend and the backend. After the user logs out, the auth token is removed from the cookies, therefore, protected routes become no longer accesible.

image

The application supports the following API routes:

/api/auth/signup
{
 method: 'POST',
 headers: { 'Content-Type': 'application/json' },
 body: JSON.stringify({username, password})
}
/api/change-password
{
 method: 'PATCH',
 headers: { 'Content-Type': 'application/json' },
 body: JSON.stringify({oldPassword, newPassword})
}
/api/add-order
{
 method: 'POST',
 headers: { 'Content-Type': 'application/json' },
 body: JSON.stringify(items)
}

How to install

  1. Download the zip file or clone the repo
  2. Install and run
npm install
npm run dev

clothing-store's People

Contributors

i-sviridov avatar

Watchers

Kostas Georgiou avatar  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.