Giter Site home page Giter Site logo

nestjs-sequelize-jwt's Introduction

Nest

Project made with nest and use

And what about this repo ?

This project is a starter kit which implement the following :

  • Nest.js
  • Sequelize (ORM)
  • Umzug (Migration)
  • Dotenv (Evironement variable)
  • JWT (For Json Web Token authentication)

How it works

  • To format code npm run format
  • Start the server npm start
  • To run up/down migration npm run migrate {up/down}

Configuration

To configure put all config file in the ./src/config/*. To use the env variable, remove .demo from .env.demo.

nestjs-sequelize-jwt's People

Contributors

adrien2p avatar victorkochkarev 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

nestjs-sequelize-jwt's Issues

TypeScript Issue with User Service

Hi,
I've tried to start the project, and there are multiple issues like described below in a user service:

modules/users/user.service.ts (15,22): The 'this' context of type 'typeof Model' is not assignable to method's 'this' of type 'new () => User'.
  Cannot assign an abstract constructor type to a non-abstract constructor type. (2684)

Any idea on how to fix that ?

[DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead

Basically, non of the controller methods are working due to this error:

[DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(node:4463) UnhandledPromiseRejectionWarning: TypeError: res.status is not a function
    at DispatchError.catch (...shared/filters/dispatch-error.ts:25:24)

Used postman for testing routes, please help

auto generated migration

Hi there,

How did you generate the 20170807000001-create-table-users in the migrations directory? Or did you have to do that step manually?

TSError: ⨯ Unable to compile TypeScript

src/server.ts (19,5): Property 'useGlobalFilters' does not exist on type 'Promise<
INestApplication>'. (2339)
src/server.ts (21,5): Property 'listen' does not exist on type 'Promise<INestAppli
cation>'. (2339)

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.