Skip to content

Simple dockerized book collection api with frontend and backend.

Notifications You must be signed in to change notification settings

smihaljenovic/booksApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Books API

Simple dockerized book collection api with frontend and backend.

Setup docker instance

Run command docker-compose up inside root folder. This will run complete docker instance of books api with backend, frontend and MySQL database. On first run, database will be created with two users. Default root user and api specific book user.

Docker migrations and seeders

To run database migrations and seeders, use special deployment routs. This is required to be able to use application.

GET /api/v1/migrate to run migrations

GET /api/v1/migrateList to check migrations

GET /api/v1/seed to run seeds

Run tests

It is recommended to run tests on empty database. Tests can be run inside docker instance, inside booksApi folder. Run command node ace test unit.

Frontend

Frontend is accessible over localhost:2200 route. Credentials for main admin user are admin@books.com with password Admin22*.

About

Simple dockerized book collection api with frontend and backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published