Giter VIP home page Giter VIP logo

ads-testcase's Introduction

ADS x MSIB Test Case

Node.js npm Bun Docker

Backend Test Case 3 of ADS Digital Partner x MSIB

Test case for simple online store service.

Features ๐Ÿ’ก

  • Authentication
  • Product Management
  • Cart
  • Checkout
  • Order Management

Tech Stacks โš™๏ธ

  • Node.js (Production/Dockerization)
  • Bun (Development)
  • Express.js
  • MySQL
  • Sequelize
  • Sequelize CLI
  • Joi
  • JWT
  • Docker
  • Docker Compose

Prerequisites ๐Ÿ“‹

API Endpoints ๐Ÿ“ก

Service Endpoint Method Used for
Seller Register /auth/register/seller POST Seller
Customer Register /auth/register/customer POST Seller
Login /auth/login POST Both
Add Product /products POST Seller
Get Products /products GET Public
Get Product by ID /products/:id GET Public
Add Item to Cart /carts POST Customer
Get Cart Items /carts GET Customer
Checkout /orders POST Customer
Get Orders /orders GET Seller
Get Order Detail by ID /orders/:id GET Seller

For more details, please refer to this report document.

How to Start โœจ

  1. Clone and cd to this repo
    git clone https://github.com/tudemaha/ads-testcase
    cd ads-testcase
  2. Run Docker Compose (use sudo if necessary)
    docker compose up
  3. Wait until mysql and web services ready
  4. Try API using http://localhost:8080

ads-testcase's People

Contributors

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