Coder Social home page Coder Social logo

offers-monorepo's Introduction

OffersMonorepo

This workspace has been generated by Nx, a Smart, fast and extensible build system.

Development server

Run npx nx run offers-ui:serve --proxy-config proxy.conf.json for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Understand this workspace

Run nx graph to see a diagram of the dependencies of the projects.

Remote caching

Run npx nx connect-to-nx-cloud to enable remote caching and make CI faster.

Further help

Visit the Nx Documentation to learn more.

gen angular app: @nrwl/angular:application


Design decision-making

  1. why relational DB / postgres ? cause the data is stuctured (known strict model) and sensitive so requires robust data integrity constraints and triggers, which help ensure data consistency and prevent data corruption.
  2. In real world use case I would put a cache layer before hitting the DB in order to get quicker fetches and reduce load on my DB (ask chatgpt)
  3. In real world I may choose a managed db instance

###Postgres dev container

To have postgresql pull the image:

docker run --name postgres -e POSTGRES_PASSWORD=12345 -p 5432:5432 -d postgres

Interactively run:

docker exec -it postgres psql -U postgres

Create the DB:

CREATE DATABASE storedb;

➜ task npx node-pg-migrate create storedb
➜ task export DATABASE_URL="postgres://postgres:12345@localhost:5432/storedb"

➜ task npx node-pg-migrate up

offers-monorepo's People

Contributors

sivanisentinel avatar

Watchers

James Cloos avatar  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.