GithubHelp home page GithubHelp logo

satishbabariya / nodejs-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
355.0 6.0 55.0 1.42 MB

Clean Architecture for node.js projects (Typescript + Express + TypeORM + Typedi)

License: MIT License

TypeScript 97.66% Dockerfile 0.45% Shell 1.89%
nodejs typescript express typeorm inversifyjs boilerplate node typedi dependency-injection dependency-injection-container

nodejs-boilerplate's People

Contributors

akbar1214 avatar dependabot-preview[bot] avatar dependabot[bot] avatar renovate-bot avatar renovate[bot] avatar satishbabariya 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

nodejs-boilerplate's Issues

Sign up security issue

During sign up, you should not specify whether an account exists or not.

if (error.name === 'MongoError' && error.code === 11000) {
    // Duplicate username
    throw new Error('User already exist!');
}

Similarly, you should not specify whether a user exists during login vs. password incorrect. Both are leaking potentially sensitive information whether a user account exists.

A better implementation for sign-in would be to say that the credentials are invalid. Similarly, for registering, it would be to just say check your email regardless of whether you send an email for confirmation.

Thanks for the good repo.

@satishbabariya

I am currently distributing TypeScript Express Starter as open source.
However, I am developing typeorm with a new template., and it seems to be a good resource.

We look forward to your good repo. :-D

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.