Giter Site home page Giter Site logo

nijya / shopcarts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from csci-ga-2820-su23-001/shopcarts

0.0 0.0 0.0 763 KB

NYU DevOps Shopcarts Service Summer 2023

License: Apache License 2.0

Shell 1.02% JavaScript 10.35% Python 67.91% Makefile 2.95% HTML 7.61% Dockerfile 0.96% Gherkin 9.14% Procfile 0.05%

shopcarts's Introduction

Shopcarts Service

The shopcarts service allows customers to make a collection of products that they want to purchase. It contains a reference to a product and the quantity the customer wants to buy. It also contains the price of the product at the time they placed it in the cart. A customer will only have one shopcart.

Build Status codecov License Python

Contents

Sites

CI/CD Workflow

CI/CD Workflow

Documentation

This project leverages Flask-RESTX to generate Swagger/OpenAPI documentation available at /apidocs.

List of RESTful Routes

These are the RESTful routes for shopcarts and items:

Endpoint            Methods  Rule
------------------  -------  -----------------------------------------------------
index_page          GET      /
shopcartsapi_page   GET      /shopcartsapi
itemsapi_page       GET      /itemsapi

health              GET      /health

apidocs             GET      /apidocs
list_shopcarts      GET      /api/shopcarts
create_shopcarts    POST     /api/shopcarts
get_shopcarts       GET      /api/shopcarts/<shopcart_id>
update_shopcarts    PUT      /api/shopcarts/<shopcart_id>
delete_shopcarts    DELETE   /api/shopcarts/<shopcart_id>
clear_shopcarts     PUT      /api/shopcarts/<shopcart_id>/clear

list_items          GET      /api/shopcarts/<shopcart_id>/items
create_items        POST     /api/shopcarts/<shopcart_id>/items
get_items           GET      /api/shopcarts/<shopcart_id>/items/<item_id>
update_items        PUT      /api/shopcarts/<shopcart_id>/items/<item_id>
delete_items        DELETE   /api/shopcarts/<shopcart_id>/items/<item_id>

The test cases can be run with green.

Database Connection

Steps

  1. Leveraging the Docker command to launch the PostgreSQL CLI in the shopcarts.db container using the following command:

    docker exec -it shopcarts.db psql -U postgres -d postgres -h localhost -p 5432

License

Copyright (c) John Rofrano. All rights reserved.

Licensed under the Apache License. See LICENSE

This repository is part of the NYU masters class: CSCI-GA.2820-001 DevOps and Agile Methodologies created and taught by John Rofrano, Adjunct Instructor, NYU Courant Institute, Graduate Division, Computer Science, and NYU Stern School of Business.

shopcarts's People

Contributors

wl2484 avatar lillisluo avatar momo100110 avatar nijya avatar emhao avatar jjrofrano 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.