-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from TulioHRC/feature/library
Feature/library
- Loading branch information
Showing
20 changed files
with
1,426 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Backend | ||
|
||
My first experience with Typescript, NestJS and PostGres, so it's almost everything in the backend new to me (but typescript is 99% equals to JS). | ||
|
||
I used as reference, ChatGPT (for explanations), NestJS documentation (PostGres and TypeORM on this link: https://docs.nestjs.com/recipes/sql-typeorm) and some videos on youtube. | ||
|
||
### What I understood in the backend? | ||
|
||
src/controllers -> Basically the controllers that I would use in express for the HTTP requests | ||
src/entity -> Schema of the table of my database | ||
src/modules -> Organization of the different types of data, to be imported in the app | ||
src/providers -> Creates the instacies to be injected in another components like services, modules and controllers | ||
src/services -> Functions to be imported | ||
src/app.module.ts -> Full organization of the modules, controllers and providers | ||
src/main.ts -> The first executed file of the server, being its duty to open connection of the server | ||
|
||
So basically, the backend will only provide information for the frontend like an own API. |
Oops, something went wrong.