Skip to content

studioatual/website-api-apache

Repository files navigation

Website API with JWT Authentication

Base Website with Slim Framework and Api JWT Authentication on Docker with Php 7.3.7 Mysql Apache Phpmyadmin and XDebug


Installation

1. Create a Self-Signed SSL Certificate

Install Certutil

  • sudo apt install libnss3-tools -y

Install mkcert

Generate Local CA

  • mkcert -install

Generate Local SSL Certificates

  • sudo mkcert example.com '*.example.com' localhost 127.0.0.1 ::1

Copy the certificate example.com+4.pem and key example.com+4-key.pem into folder .docker/apache of your project.

Rename these files to server.pem and server-key.pem and give the permission 644.

  • sudo chmod 644 server.pem
  • sudo chmod 644 server-key.pem

References


2. Install Website in Terminal

Before the command below make sure if you have a permission 755 on the storage folder

  • docker-compose up -d
  • docker exec -it apache-srv composer install

Before you RUN phinx migrate to populate database Copy the .env-example => .env and configure fields Log in postgres-server and create website and tests databases.

and next RUN the commands below

  • docker exec -it apache-srv vendor/bin/phinx migrate
  • docker exec -it apache-srv vendor/bin/phinx seed:run

Run PHPUNIT

  • docker exec -it apache-srv vendor/bin/phpunit

About

Website API with JWT Authentication ( Docker | Apache | Php | Mysql | Phpmyadmin )

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors