GO CRUD Rest API using Mux, Postgres, Docker, and Docker Compose
Make sure you have the following installed on your system:
- Go (version 1.19)
- Docker
- Docker Compose
- Postgres (version 12)
- Clone this repository to your machine:
git clone https://github.com/ModaxDev/GoCRUD-RestAPI/tree/master
cd GoCRUD-RestAPI
docker compose build
This will build the Docker containers for the GoCRUD Rest API application and Postgres database and run them locally.
http://localhost:8000
- GET /users: Retrieves all users
- GET /users/{id}: Retrieves a single user by id
- POST /users: Creates a new user
- PUT /users/{id}: Updates a user by id
- DELETE /users/{id}: Deletes a user by id
This project is licensed under the MIT License.