https://github.com/dev-eranda/nestjs-crud-auth-api
Built a CRUD + JWT API using NestJS (to learn backend development)
https://github.com/dev-eranda/nestjs-crud-auth-api
backend-development e2e-testing jest jwt-authentication nestjs postgresql-database prisma
Last synced: 12 months ago
JSON representation
Built a CRUD + JWT API using NestJS (to learn backend development)
- Host: GitHub
- URL: https://github.com/dev-eranda/nestjs-crud-auth-api
- Owner: dev-eranda
- License: mit
- Created: 2024-07-12T04:17:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-24T09:31:47.000Z (12 months ago)
- Last Synced: 2025-03-24T09:40:24.019Z (12 months ago)
- Topics: backend-development, e2e-testing, jest, jwt-authentication, nestjs, postgresql-database, prisma
- Language: TypeScript
- Homepage:
- Size: 650 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NestJS API
**Developed by:** Eranda Samarasinghe
## Project Background and Overview
This repository contains back-end development work where built a secure authentication application using NestJS. This project helped me understand best practices in API security, modular architecture, and effective database management, while integrating advanced testing techniques
## Project Goals
The main objectives of this application are to:
1. Implemented JWT-based authentication for securing API endpoints and managing user sessions
2. Developed a modular codebase using dependency injection and decorators in NestJS
3 Utilized PostgreSQL within a Docker environment to ensure efficient database management and deployment
4. Enabled CRUD operations to facilitate resource management within the application
5. Integrated end-to-end (e2e) testing using Pact to ensure the integrity and reliability of the application
## Technical Details
Core technologies used:
- **NestJS, PostgreSQL, JWT Authentication**
## Installation
1. Clone repository:
```sh
git clone https://github.com/dev-eranda/nestjs-crud-auth-api
2. Start development server:
```sh
yarn run start
3. Start watch mode:
```sh
yarn run start:dev
- **Open [http://localhost:5432](http://localhost:5432) with your browser to see the result.**
## Test
1. Clone repository:
```sh
yarn run test
2. Start development server:
```sh
yarn run test:e2e