Skip to content

albuquerque53/bookstore-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BookStore API 📚

An API for a fictionary library's management

Run in Insomnia}

Tecnical specification 🔍

  • Simple CRUD for three repositories:
    • Authors
    • Categories
    • Books
  • Used the relational Database MySQL for this (see the ER Diagram here).
  • The application structure is built based on DDD (Domain-driven design) pattern.
  • All application environment is encapsuled into docker (see build folder to understand).
  • This API have a Swagger/Open API documentation, take a look here.

Project set-up 🏗️

  1. Create the .env file inside root (you must use the .env.example as base):
cp .env.example .env
  1. Build the environment and get into API container:
make up
  1. Install the dependencies:
make install
  1. Run the tests to make sure that everyting's all right:
make test
  1. Run the migrations to create the database tables:
make migrateup
  1. Still into container, you can run the application with:
make serve

About

A simple Rest API developed in Go (lang)

Topics

Resources

License

Stars

Watchers

Forks

Languages