This project is a full-stack application built with a Laravel API, a Nuxt.js frontend, and an Nginx reverse proxy. It is containerized using Docker for easy deployment and scalability.
- API: A Laravel backend that provides a REST API.
- Client: A Nuxt.js frontend that communicates with the Laravel API.
- Nginx: A reverse proxy that handles routing requests to the appropriate services (API or Client).
- Docker
- Docker Compose
Clone the repository to your local machine:
git clone https://github.com/omarMohamedo-o/docker_rayagate_challenge.git
cd <repository-folder>Ensure you have valid SSL certificates. The nginx/certs/ folder should contain the following files:
self.crt: Your SSL certificate.self.key: Your SSL private key.
For development, you can generate self-signed certificates.
Make sure to configure the environment variables for your Laravel API and MySQL database in the docker-compose.yml file under the api service. The default values should be suitable for a local development environment.
Run the following command to build and start all services (API, Client, MySQL, Nginx):
docker-compose up --buildOnce the containers are up, you can access the Nuxt.js application in your browser at: https://localhost:3000

The API is available at: https://localhost:8000
