nest-auth-example
Nest.js authentication with Passport. Realworld example
File Explorer
Download Latest Version (.zip)- codesee-arch-diagram.yml
- dependabot-pr.yml
- e2e-test.yml
- mega-linter.yml
- stress-test.yml
- unit-test.yml
- dependabot.yml
- settings.json
- sign-up.dto.ts
- jwt-auth.guard.ts
- local-auth.guard.spec.ts
- local-auth.guard.ts
- session-auth.guard.ts
- token.interceptor.spec.ts
- token.interceptor.ts
- jwt-payload.interface.ts
- jwt.strategy.ts
- local.strategy.ts
- auth.controller.spec.ts
- auth.controller.ts
- auth.module.ts
- auth.service.spec.ts
- auth.service.ts
- session.serializer.ts
- 1557166726050-create-user.ts
- 1570141220019-create-profile.ts
- 1584985637890-create-session-storage.ts
- 1597106889894-create-todo.ts
- todo.controller.spec.ts
- todo.controller.ts
- pagination-link.dto.ts
- pagination-meta.dto.ts
- pagination-query.dto.ts
- pagination.dto.ts
- todo-create.dto.ts
- todo-update.dto.ts
- todo.entity.ts
- todo.factory.ts
- todo.filter.spec.ts
- todo.filter.ts
- is-owner.interceptor.spec.ts
- is-owner.interceptor.ts
- pagination.interceptor.spec.ts
- pagination.interceptor.ts
- parse-todo.pipe.spec.ts
- parse-todo.pipe.ts
- todo.seeder.ts
- todo.service.spec.ts
- todo.service.ts
- todo.module.ts
- profile.controller.spec.ts
- profile.controller.ts
- user.decorator.ts
- user-update.dto.ts
- profile.entity.ts
- user.entity.ts
- profile.factory.ts
- user.factory.ts
- profile.seeder.ts
- user.seeder.ts
- user.service.spec.ts
- user.service.ts
- is-user-already-exist.validator.spec.ts
- is-user-already-exist.validator.ts
- user.module.ts
- app.module.ts
- data-source.ts
- health.controller.spec.ts
- health.controller.ts
- main.ts
- repl.ts
- setup.ts
- auth.js
- main.js
- profile.js
- todo.js
- folder.yml
- Get session.yml
- Sign in.yml
- Sign up.yml
- .gitkeep
- folder.yml
- Get Profile.yml
- Create a todo.yml
- Edit a todo.yml
- folder.yml
- Get a todo.yml
- List todos.yml
- Mark a todo as done.yml
- Mark a todo as pending.yml
- Remove a todo.yml
- opencollection.yml
- app.e2e-spec.ts
- auth.e2e-spec.ts
- jest-e2e.json
- profile.e2e-spec.ts
- todo.e2e-spec.ts
- .dockerignore
- .editorconfig
- .env.example
- .gitignore
- .jscpd.json
- .kodiak.toml
- .mega-linter.yml
- .travis.yml
- app.json
- biome.jsonc
- docker-compose.yml
- Dockerfile
- LICENSE
- nest-cli.json
- package-lock.json
- package.json
- Procfile
- README.md
- tsconfig.build.json
- tsconfig.json
π Installation Guide
1. Get the code
git clone https://github.com/leosuncin/nest-auth-example
Downloads the entire project code from GitHub to your computer.
cd nest-auth-example
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker-compose up -d
Runs the command against the services defined in the compose file.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
3. Node.js
EasyPrerequisites
npm install
Downloads and installs the libraries listed in package.json.
npm run typeorm migration:run
Type this command into your terminal and run it.
npm run start:dev
Starts the development/run server.
npm test
Type this command into your terminal and run it.
npm run test:e2e
Type this command into your terminal and run it.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
