Git Product home page Git Product logo

fauxmazon's Introduction

Fauxmazon ๐Ÿ›’

Fauxmazon is a fake store API built with the Phoenix framework in Elixir. It provides a simple and scalable solution for managing products and serving them via a RESTful API. Please note that this project is currently in development. Fauxmazon simulates the functionality of an e-commerce platform, allowing users to interact with a catalog of products via HTTP endpoints. It provides basic operations for retrieving product information, searching for products, and filtering products by category.

Product Interface

Products in the Fauxmazon API have the following properties:

Field Type Description
id Integer Unique identifier for the product
name String Name or title of the product
description String a description of the product
price Decimal Price of the product
brand String Brand or manufacturer of the product
stock Integer Current stock or inventory of the product
rating Decimal Average rating of the product (if applicable)
categories Array of Maps List of categories the product belongs to
images Array of String List of image URLs representing the product

Request Example

{
  "id": 1,
  "name": "Organic Skin Care Kit",
  "description": "A collection of three organic skin care products in one kit.",
  "brand": "Erbology",
  "price": "49.99",
  "rating": "4.50",
  "stock": 100,
  "categories": [
    {
      "id": 1,
      "name": "Health & Beauty",
      "description": "Discover a wide range of products for your health and beauty needs.",
      "inserted_at": "2024-04-22T17:34:22Z",
      "updated_at": "2024-04-26T16:29:46Z"
    }
  ],
  "images": [
    "https://via.placeholder.com/500x500?text=Product+Image+1",
    "https://via.placeholder.com/500x500?text=Product+Image+2"
  ]
}

Entry Points

The following entry points are available in the Fauxmazon API:

  1. Get All Products:
    [GET] http://localhost:4000/products

  2. Get Product by ID:
    [GET] http://localhost:4000/products/:id

  3. Search By Name:
    [GET] http://localhost:4000/products/search?name={name}

  4. Category By Id + Respective Products:
    [GET] http://localhost:4000/categories/:category

  5. Get All Categories:
    [GET] http://localhost:4000/categories/ These entry points allow users to retrieve product information, search for products, and filter products by category. Additional functionality may be added in future updates.

Getting Started

To get started with Fauxmazon, follow these steps:

  1. Clone the repository: git clone https://github.com/Sierra9999/fauxmazon.git
  2. Install dependencies: mix deps.get
  3. Start the Phoenix server: mix phx.server

Contributing

Contributions are welcome! If you'd like to contribute to Fauxmazon, please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

fauxmazon's People

Contributors

mateosierra17 avatar

Watchers

 avatar

fauxmazon's Issues

Deploy

test environment

  • find a hosting service with a free tier
  • deploy fauxmazon on it

proposals

any free tier ideas will be listed here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.