https://github.com/armanidrisi/nestjs-rest-api
Simple CRUD Rest API In Nestjs
https://github.com/armanidrisi/nestjs-rest-api
arman-idrisi armanidrisi basic-crud-api crud-api nest-js nestjs nestjs-api nestjs-backend nestjs-postgresql nestjs-restapi nodejs nodejs-api nodejs-crud typescript typescript-nestjs
Last synced: 3 months ago
JSON representation
Simple CRUD Rest API In Nestjs
- Host: GitHub
- URL: https://github.com/armanidrisi/nestjs-rest-api
- Owner: Armanidrisi
- License: mit
- Created: 2023-05-11T11:45:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-11T11:55:33.000Z (about 2 years ago)
- Last Synced: 2025-01-14T00:27:26.757Z (4 months ago)
- Topics: arman-idrisi, armanidrisi, basic-crud-api, crud-api, nest-js, nestjs, nestjs-api, nestjs-backend, nestjs-postgresql, nestjs-restapi, nodejs, nodejs-api, nodejs-crud, typescript, typescript-nestjs
- Language: TypeScript
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NestJs Crud CRUD API ๐
[](https://github.com/Armanidrisi/nestjs-rest-api/blob/master/LICENSE)
[](https://github.com/Armanidrisi/nestjs-rest-api/issues)
[](https://github.com/Armanidrisi/nestjs-rest-api/stargazers)> 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](https://nodejs.org) and [npm](https://www.npmjs.com/) installed on your system. Then, follow these steps:
1. Clone the repository:
```bash
git clone https://github.com/Armanidrisi/nestjs-rest-api.git
```2. Navigate to the project directory:
```bash
cd nestjs-rest-api
```3. Install the dependencies:
```bash
npm install
```4. Set up the configuration file:
```bash
cp .env.example .env
```5. Customize the `.env` file with your configuration settings.
## Usage ๐
To start the development server, run the following command:
```bash
npm run start:dev
```Visit [http://localhost:3000](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:
```bash
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](https://opensource.org/licenses/MIT).
## Issues ๐
If you encounter any issues or have suggestions, please [open an issue](https://github.com/Armanidrisi/nestjs-rest-api/issues).
## Stay in Touch ๐
- Author: Arman Idrisi
- Follow: [GitHub](https://github.com/Armanidrisi/)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.