Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rayagate Challenge

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.

Project Structure

  • 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).

Requirements

  • Docker
  • Docker Compose

Setup

Clone the Repository

Clone the repository to your local machine:

git clone https://github.com/omarMohamedo-o/docker_rayagate_challenge.git
cd <repository-folder>

Configure SSL Certificates

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.

Environment Configuration

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.

Build and Start the Containers

Run the following command to build and start all services (API, Client, MySQL, Nginx):

docker-compose up --build

Accessing the Application

Frontend (Nuxt.js)

Once the containers are up, you can access the Nuxt.js application in your browser at: https://localhost:3000 image local

API (Laravel)

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages