c4nzin / nest-pad Goto Github PK
View Code? Open in Web Editor NEWThis tool is designed to improve your note-taking experience. With the ability to create, delete, and organize your notes
License: MIT License
This tool is designed to improve your note-taking experience. With the ability to create, delete, and organize your notes
License: MIT License
add note schema
https://mongoosejs.com/docs/guide.html
This feature needs to be added to the project.
https://docs.nestjs.com/techniques/compression
This feature needs to be added to the project.
https://www.npmjs.com/package/@algoan/nestjs-logging-interceptor
This feature needs to be added to the project.
Add rate limiter to the project,
it's commonly used to avoid/protect applications from brute-force attacks
https://github.com/nestjs/throttler
This feature needs to be added to the project.
rate limiter is not working as expected,
need to add provide class with ThrottlerGuard
https://portswigger.net/web-security/csrf
need to be implement base repository feature
Implementing a Generic Repository Pattern Using NestJS
Doc2
add note boilerplate
This feature needs to be added to the project.
https://eslint.org/docs/latest/
Need to add this implementation for the project.
This feature needs to be added to the project.
This feature needs to be added to the project.
This feature needs to be added to the project.
https://github.com/iamolegga/nestjs-pino
This feature needs to be added to the project.
https://docs.nestjs.com/recipes/passport
https://docs.nestjs.com/security/authentication
This feature needs to be added to the project.
Add get user id decorator. because current solution is a bit of messy.
For example:
Bad written code
@Delete(':id')
@UseGuards(AccessTokenGuard)
public async deleteById(
@Param('id') id: string,
@Req() req: Request,
): Promise<UserDocument | NoteDocument> {
const currentUserId = req.user['sub'];
return this.noteService.delete(id, currentUserId);
}
Expected code with the GetCurrentUser decorator
@Delete(':id')
@UseGuards(AccessTokenGuard)
public async deleteNoteById(
@Param('id') noteId: string,
@GetCurrentUser() currentUser: User
): Promise<UserDocument | NoteDocument> {
return this.noteService.delete(noteId, currentUser);
}
Add router module instead of concatenating the controller path
This feature needs to be added to the project.
https://github.com/fiznool/express-mongo-sanitize
This feature needs to be added to the project.
https://docs.nestjs.com/security/helmet
This feature needs to be added to the project.
https://docs.nestjs.com/openapi/introduction
This feature needs to be added to the project.
Need to add mongo db connection with mongoose
This feature needs to be added to the project.
Needs to be improved :
public async loggedUser(id: string) {
const user = await this.findById(id);
if (!user) throw new NotFoundException('No user found');
return user;
}
This feature needs to be added to the project.
This feature needs to be added to the project.
This feature needs to be added to the project.
Note: must be used with the @delete decorator.
This feature needs to be added in enviroment file
This feature needs to be added to the project.
The user should be able to log out whenever they want.
This feature needs to be added to the project.
Need to a global pipe validation feature is necessary for the backend.
This feature needs to be added to the project.
https://docs.nestjs.com/techniques/file-upload
Need to add this implementation for the project.
Add new notepad dto
The code needs to be improved :
@Get('current')
@Message('Succesffully fetched the logged user')
public getLoggedUser(@User('sub') id: string) {
return this.userService.loggedUser(id);
}
expressMongoSanitize({
^
TypeError: (0 , express_mongo_sanitize_1.default) is not a function
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.