saluki / nestjs-template Goto Github PK
View Code? Open in Web Editor NEWScaffold quickly your next TypeScript API with this opinionated NestJS template crafted for Docker environments
License: MIT License
Scaffold quickly your next TypeScript API with this opinionated NestJS template crafted for Docker environments
License: MIT License
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
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:
GuestGuard
and RestrictedGuard
class used for and how to use/implement it?configProvider
constants which has several field and imported in CommonModule
.configProvider
? What are the possible value for provide
field? Is there any other fields besides provide
and useFactory
?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.
Just curious how can I add mysql to the starter so I have the database and database engine running too.
In the builder stage, In the Dockerfile, in line 25 you run npm ci
command, and after the builder stage, in the final stage you run npm ci
again.
But why? your base images are the same and these steps happen after each other. I think it was a better idea to copy the node_modules from the builder stage. And as a side note; you do not use npm ci --only=dev
in the builder step and npm ci --only=prod
SO WHY?
Hello! Thanks for the neat template!
How about making this repository a template? It's just a checkbox in the settings
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
npm ERR! missing script: build:docker
nest g m passenger
create folder controller
nest g co passenger
move passengerController ...
Or "One Command"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.