Skip to content

alekseiapa/apple_store

Repository files navigation

Apple store

The service is a straightforward store. It will provide APIs for the frontend to perform the following tasks:

  1. Create/Read/Update/Delete Products
  2. Create/Read/Update/Delete Users
  3. Create/Read/Delete Orders
  4. Login Users

Documentation

Tools that were used during development

TODOs:

  • Add more cases for api endpoints
  • Implement and improve READ/UPDATE orders
  • Implement the option for users to follow each other

Dev environment

Run in docker

  • Create docker network

    make docker-network
  • Start project in docker compose:

    make docker_compose

Run locally without docker

  • Start postgres container:

    make postgres
  • Create apple_store database:

    make createdb
  • Run db migration up all versions:

    make migrateup
    
  • Start api server:

    make server

Other commands

  • Run all tests:

    make test
  • Drop apple_store database:

    make dropdb
  • Run db migration down all versions:

    make migratedown1ver
  • Run db migration up 1 version:

    make migrateup1ver
  • Run db migration down 1 version:

    make migratedown1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published