https://github.com/cloneofsimo/nestjstut
https://github.com/cloneofsimo/nestjstut
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloneofsimo/nestjstut
- Owner: cloneofsimo
- Created: 2022-02-27T17:09:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-12T19:46:03.000Z (over 4 years ago)
- Last Synced: 2025-10-20T04:52:34.060Z (10 months ago)
- Language: TypeScript
- Size: 372 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Going Over NestJS tutorial from John Ahn
https://www.youtube.com/watch?v=3JminDpCJNE&t=17376s
I want to be a NestJS expert someday!
# Modification from original Tutorial
## Swagger UI
Adding Swagger UI to the project with NestJS, was helped by this post: https://jhyeok.com/nestjs-swagger/
Validation Pipe, Class Validator
## Postgres with local Docker in Linux os
Tips:
https://pagertree.com/2020/01/06/docker-cheat-sheet/
Largely followed:
https://towardsdatascience.com/local-development-set-up-of-postgresql-with-docker-c022632f13ea
1. pull postgres image from https://hub.docker.com/_/postgres.
2. `sudo docker run -d --name new_postgres -e POSTGRES_PASSWORD=mumumama -p 5432:5432 postgres`
3. `sudo docker run -p 8080:80 -e 'PGADMIN_DEFAULT_EMAIL=cloneofsimo@gmail.com' -e 'PGADMIN_DEFAULT_PASSWORD=cloneofsimo' --name dev-pgadmin -d dpage/pgadmin4`
4. `sudo docker inspect new_postgres -f "{{json .NetworkSettings.Networks }}"`
## CLIs
`nest g module X`
`nest g controller auth --no-spec`
`nest g service auth --no-spec`