This is a simple Rest API application built with Node.js and Express, using Postgres database for storage and Docker for containerization. The application provides basic CRUD functionality to manage data stored in the database.
Before installing this application, ensure that you have the following dependencies installed on your system:
- Docker
- Node.js
- npm (Node Package Manager)
To install this application, perform the following steps:
- Clone the repository
- Navigate to the cloned directory
- Run
npm install
To start the application, run the following command:
docker-compose up
This command will start the Postgres database server and the Node.js application server in separate Docker containers.
Once the server is running, you can access the API at the following URL:
http://localhost:3000/
The API provides the following endpoints:
GET /users
: Get a list of all usersGET /users/:id
: Get a single user by IDPOST /users
: Create a new userPUT /users/:id
: Update an existing user by IDDELETE /users/:id
: Delete a user by ID
If you wish to contribute to this project, please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE
file for details.