
Define a user entity with id, name, handle, and email using TypeORM decorators, configure SQLite with the TypeORM module, and save a user from the request body via injected repository.
Refactor a nest app to use a dedicated user service for business logic, moving user creation and database saving from the controller to the service, with a create-user dto.
Create a user module, move the user controller and user service into it, and import the typeorm repository within the module, with the app module importing the user module.
Learn how to implement database migrations in a nest js blogging app using typeorm, configure a migrations folder and data source, and run and revert migrations with sqlite.
Ensure user handles stay unique by checking for existing handles before saving and appending a short random value to the username, using a shared utils function for handles and tokens.
design and implement a new article resource in a NestJS project, including article entity with id, title, content, slug, image, and timestamps, plus migration and post handling for articles.
Seed a fresh database for the blogging app by creating a seed script using TypeORM entities (user, token, article), generating users, tokens, and articles with lorem ipsum content and slugs.
Explore implementing sorting and filtering for the blogging app's endpoint: add sort and direction query parameters, validate them, apply dynamic order by id or published at, and exclude unpublished posts.
Learn how to handle unpublished articles in a blogging app by validating the current user, checking publish state, and returning not found when access is unauthorized.
Add reaction functionality for articles, including bookmarks and likes, and explore complex queries with the query builder to handle advanced scenarios. Boost user engagement with content.
Implement article reactions by adding a reaction service and integrating it with the article service to return per-type counts and the current user's reaction for article lists and details.
Are you ready to take your NestJS skills to the next level by building a complete, real-world application from scratch? Welcome to "Portfolio Project: Blogging Application with NestJS"! This hands-on course is designed to provide you with practical experience in using NestJS to develop a fully functional blogging platform.
In this course, we focus on the practical implementation of NestJS, bypassing lengthy theoretical explanations. You'll dive straight into coding, using TypeORM for robust database interactions, including both simple and complex queries. We'll also cover essential migration functionalities to help you manage database schema changes efficiently.
Our application will be configured to run in multiple environments, ensuring that it is versatile and ready for production. You'll implement key features such as user authentication with sign-up and login functionalities, complete with email verification. All user requests will be rigorously validated to ensure security and reliability.
Centralized error handling will be another focus, helping you manage and debug errors effectively. The course will guide you through creating and managing articles, allowing authorized users to submit, update, or modify their published state. Additionally, you'll implement file upload functionality to handle static files seamlessly.
To enhance user engagement, we’ll include a reactions resource, enabling users to like or bookmark articles. Plus, you’ll get a client application to test and see your backend in action, ensuring a comprehensive learning experience.
This course aims to provide a complete understanding of building a robust application from start to finish. Whether you're a beginner or an experienced developer looking to refine your skills, this course has something for you. Join us now and start building something amazing with NestJS!