GithubHelp home page GithubHelp logo

saluki / nestjs-template Goto Github PK

View Code? Open in Web Editor NEW
467.0 11.0 155.0 1.29 MB

Scaffold quickly your next TypeScript API with this opinionated NestJS template crafted for Docker environments

License: MIT License

JavaScript 30.46% TypeScript 65.52% Dockerfile 4.01%
nestjs typescript docker jest joi swagger template prisma

nestjs-template's People

Contributors

armujahid avatar bilaschandra avatar dependabot[bot] avatar hugo4715 avatar saluki avatar sharkovich avatar shoaib30 avatar sostenesapollo avatar walter211 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-template's Issues

How to create sub folder of module when run nest cli

I want to create a controller file inside the folder: module/user/controller with one command from CLI. (Not need to generate from CLI and then create a folder by manual and move it)

example: The command: nest g controller user or nest g controller user/controller generate incorrect that I want

Questions about Guard and configProvider

Hello, first of all I'd like to say thanks to you for creating this complete nestjs template. It's helps a lot for me who just start jump into nestjs. I've several questions:

  1. What is the GuestGuard and RestrictedGuard class used for and how to use/implement it?
  2. There is a configProvider constants which has several field and imported in CommonModule.
    a. is there any documentation where I could understand more about this configProvider? What are the possible value for provide field? Is there any other fields besides provide and useFactory?
    b. How this configProvider works, since its just being imported as providers in CommonModule and I did not found any where else where this configProvider being used again?

Thank you in advance.

docs: using JWT

The restricted guard requires a JWT to access. The docs do not cover how to create a JWT or a sample JWT that can be used. I understand generating and using JWT is outside the scope of this template, but it would be helpful to point users in the right direction especially in terms of what claims are required.

Would it make sense to have a sample JWT like :
eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJERUZBVUxUX0lTU1VFUiIsImlhdCI6MTYzMTEwNDMzNCwicm9sZSI6InJlc3RyaWN0ZWQifQ.o2HcQBBpx-EJMcUFiqmAiD_jZ5J92gRDOyhybT9FakE

that can be added to the docs for getting started and testing the protected routes.

I can create a PR with the chages

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.