https://github.com/deadmanshadow/node-rest-api
Node.js RESTful API service based on Express.js 4, featuring CRUD operations with PostgreSQL.
https://github.com/deadmanshadow/node-rest-api
expressjs nodejs postgresql
Last synced: 3 months ago
JSON representation
Node.js RESTful API service based on Express.js 4, featuring CRUD operations with PostgreSQL.
- Host: GitHub
- URL: https://github.com/deadmanshadow/node-rest-api
- Owner: deadmanShadow
- License: mit
- Created: 2024-08-22T03:36:55.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-22T08:09:49.000Z (almost 2 years ago)
- Last Synced: 2025-03-15T05:26:03.542Z (over 1 year ago)
- Topics: expressjs, nodejs, postgresql
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node REST API
This repository contains a REST API project built using Express.js, Node.js, and PostgreSQL. The project is focused on practicing core RDBMS concepts, the fundamentals of creating a RESTful API, and API testing using Postman. The project includes CRUD operations.
## Technologies
- **Node.js** - JavaScript runtime for building server-side applications.
- **Express.js** - Minimalist web framework for Node.js to manage routing and middleware.
- **PostgreSQL** - Relational database system for handling data persistence.
- **Postman** - API client used to test, monitor, and document API endpoints.
- **SQL Shell (`psql`)** - Command-line interface for interacting with PostgreSQL databases.
## Features
- Routing concepts and structuring routes in an Express.js application.
- Creating and managing a PostgreSQL database using the `psql` shell.
- Performing SQL queries directly on the PostgreSQL database.
- Utilizing Postman to test the API endpoints and validate responses.
- Understanding and implementing callback functions for asynchronous operations.
## SQL Shell Setup
To interact with your PostgreSQL database using the SQL shell (`psql`), follow these steps:
1. Open your terminal.
2. Start the `psql` shell by typing:
```sh
psql -U your_username -d your_database
```