GithubHelp home page GithubHelp logo

appleute-at's Introduction

Appleute

This assignment has backend made in Nest.js and Client made in Next.js.

Usage

The backend uses jwt based auth on protected routes with the jwt passed as a cookie to the reference object.

  • GET all Users
http://localhost:3000/user/all
  • GET Profile of a user who is authenticated
http://localhost:3000/user/profile

  • POST Create a User
http://localhost:3000/user/

  • POST Create an Order (Needs Auth)
http://localhost:3000/order/:cartId

  • GET Orders against a user (Needs Auth)
http://localhost:3000/order/:cartId

  • GET All Categories
http://localhost:3000/category

  • GET All Products
http://localhost:3000/product

  • GET Specific Product
http://localhost:3000/product/:productId

  • GET Products By Category
http://localhost:3000/product/category/:categoryName

  • POST Add items to Cart (Needs Auth)
http://localhost:3000/cart/:productId

  • DELETE Delete Items from Cart (Needs Auth)
http://localhost:3000/cart/:productId

  • DELETE Clear Cart (Needs Auth)
http://localhost:3000/cart/

  • POST Login
http://localhost:3000/auth/login/

  • POST Register
http://localhost:3000/auth/register

  • POST Logout
http://localhost:3000/auth/logout

appleute-at's People

Contributors

8rxn 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.