Code Monkey home page Code Monkey logo

gravie's Introduction

Gravie Test Project

Files of Interest

TODOs

  • Manage Tailwind CSS better
  • Search Screen
    • fresh queries don't reset the page parameter in the URL
    • add query to URL so that queries could be bookmarked
    • returning from Checkout should leave the previous search screen intact
    • add tests for event handling
    • display flash message that no results were found
    • display flash message when API server is down
    • hover over shopping cart should display cart contents
  • API Client
    • error handling for API calls that fail
  • Shopping Cart
    • key for cart is only based on session id, ideally would save cart to database for logged in user

As An Architect Project Notes

Thing I Like About Elixir, Phoenix, LiveView

  • LiveView gives gives SPA performance with server side coding
  • Built-in Dababase migrations
  • Use of Elixir/Erlang's built-in pub sub for UI event messages to server side functions
  • Eliminates whole layer of SPA coding
  • Elixir is much cleaner than JavaScript or TypeScript
  • Easy to write might meaningful tests for UI events without mocking
  • Lighweight Map syntax is ideal for simple API process, no need for layer of classes/structs for simple use cases
  • Cachex for sharing shopping cart was super simple
  • Easy to handle hiding secrets
  • Ease of on engineers, only one language to learn - functional by design (not bolted on)
  • Resiliency: function crashing doesn't destroy server or even parent processes or session
  • Super easy to develop locally versus cloud-native stacks, it just runs
  • several million concurrent users per server, cheap to run on the cloud

Challenges

  • requires deploying servers, scales vertically first, then horizontally
  • requires sockets, live connection to servers
  • requires discipline - modular monolith

MISC

ECTO Notes

mix phx.gen.schema Rental rentals email:string game_guid:string
mix ecto.migrate
psql -U postgres
\connect gravie_dev
\d

                List of relations
 Schema |       Name        |   Type   |  Owner   
--------+-------------------+----------+----------
 public | rentals           | table    | postgres
 public | rentals_id_seq    | sequence | postgres
 public | schema_migrations | table    | postgres
(3 rows)

gravie's People

Contributors

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