Skip to content

0xivanov/orders-api

Repository files navigation

Orders API

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.

Prerequisites

Before you begin, ensure you have the following installed on your machine:

Getting Started

Installation

Clone the repository to your local machine:

git clone https://github.com/0xivanov/orders-api.git
cd orders-api

Running the API

  1. Start the Redis container:
docker-compose up -d redis
  1. Build and run the Orders API:
docker-compose up orders-api

The API will be accessible at http://localhost:3000.

API Endpoints

  • 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.

Dependencies

The API relies on the following third-party libraries:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published