Giter VIP home page Giter VIP logo

nx-store's Introduction

NxStore

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

Commands

  1. Create the web app
nx generate @nrwl/angular:application web --style=scss --addTailwind --prefix=nx-store --routing --setParserOptionsProject --tags='platform:web, type:app'
  1. Install ngrx
npm install @ngrx/store --save

Run the ng add schematic

nx g @ngrx/store:ng-add --project=web

Install @ngrx/effects

npm install @ngrx/effects --save

Run the ng add schematic

nx g @ngrx/effects:ng-add --project=web
  1. Add Api
npm install -D @nrwl/nest
nx generate @nrwl/nest:application api --frontendProject=web --setParserOptionsProject --tags='platform:node, type:app'
  1. Add Feature lib Articles (web)
nx generate @nrwl/angular:library list --style=scss --directory=web/articles/feature --addTailwind --buildable --changeDetection=OnPush --compilationMode=full --lazy --prefix=nx-store --routing --setParserOptionsProject --tags='platform:web,type:feature, scope:articles'
  1. Add Feature lib Articles (node)
nx generate @nrwl/nest:library articles --directory=api --buildable --controller --service --setParserOptionsProject --strict --tags='platform:node, type:feature, scope:articles'
  1. Add Models lib
nx generate @nrwl/workspace:library models --directory=shared --buildable --setParserOptionsProject --skipBabelrc --no-strict --tags='type:util, scope:shared'
  1. Add the DataAccess lib for the Articles Scope
nx generate @nrwl/angular:library data-access --style=none --directory=web/articles --buildable --changeDetection=OnPush --prefix=nx-store --tags='platform:web, type:data-access, scope:articles'
  1. Add the Articles Service to call the API
nx generate @schematics/angular:service articles --project=web-articles-data-access --path=libs/web/articles/data-access/src/lib/services

Articles

export interface Article {
  id: number;
  title: string;
  description: string;
  tags: string;
  author: Author;
  createdAt?: Date;
  updatedAt: Date;
}

export interface Author {
  id?: number;
  bio: string;
  email: string;
  image: string;
  username: string;
  following: boolean;
}

CRUD

nx-store's People

Watchers

Andrés Arias 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.