Skip to content

Commit

Permalink
Merge pull request #4 from TulioHRC/feature/library
Browse files Browse the repository at this point in the history
Feature/library
  • Loading branch information
TulioHRC authored Jan 9, 2024
2 parents 3f2bbbe + 93d0326 commit f5fcd57
Show file tree
Hide file tree
Showing 20 changed files with 1,426 additions and 56 deletions.
17 changes: 17 additions & 0 deletions backend/README.md
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.
Loading

0 comments on commit f5fcd57

Please sign in to comment.