Sign inSign up

powersjk/freelibrary-api

By powersjk

•Updated over 4 years ago

webapi to a library manager software. https://github.com/XavierSJC/FreeLibrary

Image
0

473

powersjk/freelibrary-api repository overview

⁠FreeLibrary

⁠A typical library manager software

This is a personal project to study C#⁠/React⁠/Docker⁠/Unit Tests⁠ So if you see anything strange don't worry, I'm learning and your help will be welcome

I hope to start this with a "Hello-World" and maybe turn it into a functional project.

⁠Docker image

⁠powersjk/freelibrary-api

The API.

⁠How execute

This image uses a MySQL database, so to executes the API succcessfully be sure that you has a database available.

Type the following command to run (example):

docker network create freeLibrary-network
docker volume create freeLibrary-volume
docker run -d --name mysql -v freeLibrary-volume:/var/lib/mysql -e MYSQL_USER=<user> -e MYSQL_PASSWORD=<user_pwd> -e MYSQL_ROOT_PASSWORD=<root_pwd> --network freeLibrary-network mysql 
docker run -it --name webAPIFreeLibrary -p 80:80 -e DB_SERVER=mysql -e DB_DATABASE=Freelibrary -e DB_USER=root -e DB_USER_PWD=<root_pwd> --network freeLibrary-network powersjk/freelibrary-api:0.0.1

or you can use the docker/docker-compose.yml:

docker-compose up -d

⁠Build image

If you wish to build your custom image from this image you can execute the command:

docker build -t <your_tag> -f .\docker\<dockerfile> .

Tag summary

Content type

Image

Digest

Size

94 MB

Last updated

over 4 years ago

docker pull powersjk/freelibrary-api