Code Monkey home page Code Monkey logo

nestjs-course-task-management's Introduction

nestjs-course-task-management's People

Contributors

arielweinberger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nestjs-course-task-management's Issues

How do we add the task back to the user?

[Edit] Pressed enter too soon without writing the issue

In the video where we add a user to a task, its totally clear. But wouldnt it make sense if we could, at the same time, add the task back to the user?

Is this something that is simple? Or not really?

Updating dependencies

Hi,

Thank you for a good tutorial!

I went though the tutorial a year ago, and came back to it just now.

The dependencies are outdated and you can't start the application with the latest NPM/Node version.

Create custom database provider without ORM

Hi Ariel,
Thanks for your great Udemy tutorial really easy to understand,
How can I create custom database provider without using TypeORM, pure raw sql command.
I try to follow this but not really understand to start create the provider
I can do something like this in my service:

pool = new Pool(dbConfig);
  getAll(): any {
    return this.pool.query(`SELECT * FROM todo`);
  }

but how to create a simple datatable module handle ?
or could you update your Udemy course
Thanks.

Custom GetUser Decorator

I guess with last version of nestjs, couldn't get req.user
because you will recive undefined data

make sure and test with last version !

Controller :

@Post('/test')
  @UseGuards(AuthGuard())
  test(@GetUser() user) {
    console.log('user', user);
  }

Decorator:

export const GetUser = createParamDecorator(
  (data, req): User => {
    return req.user;
  },
);

Console Output:
user undefined

So change code custom decorator to :

export const GetUser = createParamDecorator(
  (data, ctx: ExecutionContext): User => {
    const req = ctx.switchToHttp().getRequest();
    return req.user;
  },
);

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.