Git Product home page Git Product logo

new-amazon's Introduction

go workflow lint workflow

Online Book Store Example

This project is an example of an Online Book Store. It's designed to demonstrate how to create a backend API using Go programming language and a Postgres database to store book and order information.

Getting Started

These instructions will guide you through getting a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Before you begin, ensure you have Docker installed on your machine. Docker is required to run the Postgres database in a container.

How to run

Follow these steps to get your development environment running:

  1. Clone the repository

  2. From terminal, navigate to the project directory

  3. Build the application:

make build
  1. Start the Postgres database:
make run-db
  • This command starts a PostgreSQL container in the background.
  1. Init the database migration tables, make command:
make db cmd=init
  1. Migrate and seed the database:
make db cmd=migrate
  1. Start the application:
make run

Swagger Documentation

The Swagger documentation for the API is available at http://localhost:8080/docs once the application is running. This documentation provides a detailed overview of the available API endpoints, their parameters, and responses.

Commands

Visit the Makefile in the root dir to see all available commands.

Built With

  • Go - The programming language used.
  • Bun - ORM for Go.
  • Echo - Web framework for Go.
  • PostgreSQL - Database Management.
  • Docker - Containerization.

new-amazon's People

Contributors

fmiskovic avatar

Watchers

 avatar

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.