Giter Site home page Giter Site logo

fragrance_orders's Introduction

The project is split up into two submodules:

  • React Frontend that contains the jsx form.
  • Rails backend that contain,
    • CRUD for /api/v1/fragrances
    • POST /api/v1/order to create an order to be pushed onto the users board_id

Done

frontend

  • Build react jsx form out of monday vibe components
  • Add form validations/errors
  • Fetch current context to get board_id & current user id from the monday.com SDK.
  • Fetch fragrances from API to populate dropdown
  • Post order data on form submit

backend

  • Create fragrance table
  • Seed db with some fragrances
  • Create CRUD /fragrances
  • Create POST /orders
  • Create service object to handle order creation logic (and to encapsulate any future order logic that we might want)
  • Create ruby monday API wrapper for the graphql API.

Todo

frontend

  • Add tests to test basic form submission
  • Clean up react code to include: add ./context/AppContext.js to allow for context sharing across any component within the App, using react's createContext.
  • Clean up styling

backend

  • Tests for rails app for: controller, model, service objects.

  • Add JWT auth token to fragrance api.

  • Add backend validations for first_name, last_name, and quantity of fragrances selected for a given order. Consider db level & model/business logic level.

  • Consider placing the OrderService into a background job to improve performance (sidekiq)

  • Improve error handling of API, to return approppriate status codes & messages (will they be presented to the user, and will we need to consider i18n internationalization/localization)

  • For the requirement of "quantity" equating to number of orders, consider creating 1 order per quantity. Look into bulk insert options with the graphql mutation. If bulk option is not possiple, compare insterting both synch & async.

  • For CRUD /fragrances, consider linking this to the optional "dropdown" labels. Similarly, would have to add webhooks to listen to when A user makes fragrance changes in the UI/monday.com side

  • Consider organization <-> fragrance schema associations.

fragrance_orders's People

Contributors

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