An API for a fictionary library's management
- 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.
- Create the
.env
file inside root (you must use the.env.example
as base):
cp .env.example .env
- Build the environment and get into API container:
make up
- Install the dependencies:
make install
- Run the tests to make sure that everyting's all right:
make test
- Run the migrations to create the database tables:
make migrateup
- Still into container, you can run the application with:
make serve