Coder Social home page Coder Social logo

armanidrisi / nestjs-rest-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 88 KB

Simple CRUD Rest API In Nestjs

License: MIT License

JavaScript 8.24% TypeScript 91.76%
armanidrisi basic-crud-api crud-api nest-js nestjs nestjs-api nestjs-backend nestjs-postgresql nestjs-restapi nodejs

nestjs-rest-api's Introduction

Nest Logo

NestJs Crud CRUD API ๐Ÿš€

GitHub license GitHub issues GitHub stars

A simple and straightforward CRUD API built with NestJS framework. ๐ŸŒŸ

Features โœจ

  • ๐ŸŒ Basic CRUD operations (Create, Read, Update, Delete).
  • โš™๏ธ Modular and scalable architecture using NestJS modules.
  • ๐Ÿ› ๏ธ Built-in validation and error handling.
  • ๐Ÿ“ฆ Ready-to-use configuration for database connectivity.
  • ๐Ÿ”„ Logging and request/response interception for debugging.
  • ๐Ÿงช Unit tests with Jest for ensuring code quality.

Installation ๐Ÿ› ๏ธ

Ensure you have Node.js and npm installed on your system. Then, follow these steps:

  1. Clone the repository:
git clone https://github.com/Armanidrisi/nestjs-rest-api.git
  1. Navigate to the project directory:
cd nestjs-rest-api
  1. Install the dependencies:
npm install
  1. Set up the configuration file:
cp .env.example .env
  1. Customize the .env file with your configuration settings.

Usage ๐Ÿš€

To start the development server, run the following command:

npm run start:dev

Visit http://localhost:3000 to access the API.

API Endpoints ๐Ÿ›ฃ๏ธ

The API exposes the following endpoints:

  • GET /items: Get all items.
  • GET /items/:id: Get a specific item by ID.
  • POST /items: Create a new item.
  • PUT /items/:id: Update an existing item.
  • DELETE /items/:id: Delete an item.

Testing ๐Ÿงช

To run the unit tests, execute the following command:

npm run test

๐Ÿš€ Frameworks/Technologies Used

  • NestJS: Framework for building scalable and maintainable server-side applications.
  • PostgreSQL: Relational database management system.

Contributing ๐Ÿค

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Commit and push your code.
  5. Submit a pull request.

License ๐Ÿ“

This project is licensed under the MIT License.

Issues ๐Ÿ›

If you encounter any issues or have suggestions, please open an issue.

Stay in Touch ๐Ÿ‘‹

  • Author: Arman Idrisi
  • Follow: GitHub

Feel free to reach out if you have any questions or feedback!


Enjoy using the Simple CRUD API! If you find it helpful, please give it a โญ๏ธ to show your support.

nestjs-rest-api's People

Contributors

armanidrisi avatar

Stargazers

 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.