Nest.js project scaffold

Employer
Overclouded
Overclouded
Description

The task is to creating sample Nest.js project according to framework best practices.

1) Project will have 3 parts:

A) Main project written in Nest.js that will contains all concepts from point 2)

B) Dummy REST api that will just demonstrate use of code from C)

C) Db models and all db access layer topics library that will be shared between A) and B). Db communication via TypeORM to postgres with sample datamodel.

2) Main project scope (Nest.js project):

From business logic point of view project should be simple crud but it's purpose is to be solid foundation for real project

Exception handling (globally)

Authentication (JWT)

Authorization (roles, per endpoint)

If good practices require it also other custom middleware

Project Configuration Setup - Config values that are taken from env variables on startup and are also later available using DI as earlier defined classes

Dependency injection

UnitOfWork Pattern

Swagger support for created api

Logging to earlier defined source

Sample Dockerfile

3) Data model and operations.

Entity A

Entity B

Entity A have many Entity B

Operations: Crud on both entities

Published
on 2023-07-10
Required functions:
Code should be output

Offers sent (6)

pm
pm
57 deals
on 2023-07-10
angular
C plus plus
C Sharp
+ 19 more
Budget
Negotiable
Copyright
-
Expires in
30 days