Skip to content

SebasttianDaza/Ships-Rest

Repository files navigation

Ships Rest API Backend

Table of Contents

Overview

[
  {
    "id": "1",
    "name": "Colombia SAS",
    "country": "Colombia",
    "continent": "South America",
    "coordinates": "1,1"
  },
  {...}
]

# Example response above endpoint Embarcaciones

API Rest developed with PHP Vanilla, MySQL and Docker, it has authentication and authorization with JWT it's API about Ships(Embarcaciones), Sales(Ventas) and Users(Usuarios).

If you want to know more about the API, please visit the API Documentation. You feel free to collaborate with me, I'm open to any suggestions or ideas.

Built With

How To Use

To clone and run this application, you'll need Git and PHP (which comes with composer) installed on your computer, of course it can be NGINX or XAMP. From your command line:

# Clone this repository
$ git clone https://github.com/your-user-name/your-project-name

$ docker-compose build

$ docker-compose up -d

$ docker exec -it 

$ docker exec -it php-apache bash

# Add this line
<Directory "/var/www/html/mysite.com">
  AllowOverride All
</Directory>

$ a2enmod rewrite

# Install dependencies
$ cd /var/www/html/APIRest-Back && composer install

# Run the app, you can use nginx or apache

Contact