Giter Site home page Giter Site logo

stage2_nest_api's Introduction

Description

NestJS User Service

This is a simple NestJS User Service that allows you to manage users in a PostgreSQL database. It provides basic CRUD (Create, Read, Update, Delete) operations for user entities.

Prerequisites

Before you begin, ensure you have met the following requirements:

Node.js and npm installed on your machine.
PostgreSQL database server running locally or an accessible remote server.
A database named nestjs_users created in your PostgreSQL server.
Git installed (optional but recommended).

Installation

To set up this service locally, follow these steps:

Clone the repository to your local machine (or download the ZIP file and extract it):
$ git clone https://github.com/timadigwe/stage2_nest_api.git

Change into the project directory:

$ cd nestjs-user-service

Install the project dependencies:

$ npm install
$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

API Endpoints

Here are the available API endpoints for the User Service:

Create User: POST /api/users
Get All Users: GET /api/users
Get User by ID: GET /api/users/:id
Update User by ID: PUT /api/users/:id
Delete User by ID: DELETE /api/users/:id

Usage

You can use tools like curl, Postman, or Insomnia to interact with the API endpoints. Refer to the API documentation or code comments for more details. Testing

You can run tests using the following command:

bash

npm run test

Contribution

Contributions are welcome! Feel free to open issues or submit pull requests. License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

License

Nest is MIT licensed.

stage2_nest_api's People

Contributors

timadigwe 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.