Skip to content

Latest commit

Β 

History

History
125 lines (77 loc) Β· 2.86 KB

README.md

File metadata and controls

125 lines (77 loc) Β· 2.86 KB

Nest Logo

NestJS CRUD App with Auth & Docker

Installation

Clone the Repository

Clone the repository to your local machine:

git clone https://github.com/SDE-Arun/NestJs_Project.git
cd NestJs_Project

Install Dependencies

Install all required dependencies using Yarn:

yarn install

Running the Project with Docker

To run both the NestJS application and PostgreSQL with Docker, use:

docker-compose up

This will start:

  • A PostgreSQL container.
  • The NestJS application.

Compile and Run the Project {without Docker}

To start the project in different modes, use the following commands:

Development Mode

$ yarn run start

Watch Mode

$ yarn run start:dev

Run Tests

You can run the following tests using Yarn:

Unit Tests

$ yarn run test

E2E Tests

$ yarn run test:e2e

Test Coverage

$ yarn run test:cov

Deployment

When you're ready to deploy your NestJS application to production, follow the deployment documentation for more information.

If you're looking for a cloud-based platform to deploy your NestJS application, check out Mau, which simplifies deployment on AWS.

To deploy using Mau, follow these steps:

$ yarn install -g mau
$ mau deploy

Mau allows for easy deployment, helping you focus more on building features rather than managing infrastructure.


Project Overview

This is a NestJS project that implements a CRUD (Create, Read, Update, Delete) functionality using PostgreSQL as the database. The project also includes authentication features using JWT (JSON Web Tokens), and it’s containerized using Docker for easy setup and deployment.

Features

  • CRUD Operations: Perform create, read, update, and delete operations on a PostgreSQL database.
  • Authentication: Secure user authentication using JWT (JSON Web Tokens).
  • Dockerized: The application and PostgreSQL are containerized using Docker.

Tech Stack

  • NestJS: A framework for building scalable server-side applications.
  • PostgreSQL: A relational database management system.
  • TypeORM: ORM for working with databases in TypeScript.
  • JWT: Authentication using JSON Web Tokens.
  • Docker: Containerization for easier development and deployment.

Support

Nest is an MIT-licensed open source project. It grows with support from the community. If you'd like to support the project, please visit here.

Stay in Touch

License

This project is licensed under the MIT License.