The Orders API is a Go-based web service that manages orders for an online store. It uses Redis as a backend for storing order data.
Before you begin, ensure you have the following installed on your machine:
Clone the repository to your local machine:
git clone https://github.com/0xivanov/orders-api.git
cd orders-api
- Start the Redis container:
docker-compose up -d redis
- Build and run the Orders API:
docker-compose up orders-api
The API will be accessible at http://localhost:3000.
- GET /orders: Retrieve a list of orders.
- GET /orders/{orderId}: Retrieve details for a specific order.
- POST /orders: Create a new order.
- DELETE /orders/{orderId}: Delete a specific order.
The API relies on the following third-party libraries: