Skip to content

devojifr/native_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Native API

This project is built from the following stack:

  • A docker compose file with php:7.4.28-fpm-alpine3.14
    • web container with Xdebug 3
    • mysql:5.7 container
    • phpmyadmin container
    • nginx container with a nginx.conf

composer is used to manage dependencies.

Installation

Clone the repo. Then, go to your cloned repo and call:

docker compose up --build  

Now, you can access to project with the following url:

http://localhost:8081

Access PhpMyAdmin (PMA)

To access to your database, PMA has been installed:

http://localhost:8082

You can log in with these credentials:

user: user
password: user

Running Tests

First, connect to your web container:

docker exec -it php_web sh

To run tests, run the following command:

  ./vendor/bin/phpunit tests/

Swagger

You can see available API endpoints with Swagger UI:

http://localhost:8081/swagger

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published