Giter Club home page Giter Club logo

nestjs-app-assesment's Introduction

NestJS-APP-Assesment

Overview

This project is a NestJS application that handles PostgreSQL user and wallet address tables. The application is designed to provide a robust API for managing user and wallet data with the ability to create, read, update, and delete entries.

Prerequisites

Ensure you have the following installed on your system:

  • Node.js
  • npm
  • PostgreSQL

Installation and Setup

  1. Clone the repository:

    git clone https://github.com/Vikrantsingh22/NestJS-APP-Assesment.git
  2. Navigate to the project directory:

    cd NestJS-APP-Assesment
  3. Install the dependencies:

    npm install
  4. Create a .env file from the sample environment file provided:

  5. Update the .env file with your PostgreSQL database connection details:

    DATABASE_URL="postgresql://test:test@localhost:5432/test"
    
  6. Run the database migrations:

    npx prisma migrate dev
  7. Start the application:

    npm run start

Now the server is running and you can access the API.

API Documentation

For detailed API reference, you can refer to the Postman documentation: API Documentation

This documentation provides a comprehensive guide on how to use the API endpoints, including examples of requests and responses.

Environment Variables

  • DATABASE_URL: Connection string for the PostgreSQL database.

Running Migrations

To apply database migrations, run:

npx prisma migrate dev

This will ensure your database schema is up-to-date with the latest changes.

Running the Application

To start the application, use:

npm run start

The application will be available at http://localhost:3000.

nestjs-app-assesment's People

Contributors

vikrantsingh22 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.