This repository contains a Docker environment for Nuxt.js applications utilizing Express.js for streamlined development and deployment.
project_start Starts the Project
project_stop Stops the Project
server_deploy Deploys to the Express.js server
prisma_pull Pull the database schema using Prisma
prisma_generate Generate Prisma clientEnsure to set up your environment variables in the .env file.
# Docker Project
PROJECT_NAME=nuxt
PROJECT_VERSION=1.0
# MariaDB Configurations
MARIADB_CONNECTION=mysql
MARIADB_HOST=host.docker.internal
MARIADB_PORT=3306
MARIADB_DATABASE=maria
MARIADB_USERNAME=maria
MARIADB_PASSWORD=maria
MARIADB_DOCKERFILE=.docker/MariaDB
MARIADB_URL=${MARIADB_CONNECTION}://${MARIADB_USERNAME}:${MARIADB_PASSWORD}@${MARIADB_HOST}:${MARIADB_PORT}/${MARIADB_DATABASE}
# PhpMyAdmin Configurations
PHPMYADMIN_DOCKERFILE=.docker/PhpMyAdmin
PHPMYADMIN_PORT=9090
PHPMYADMIN_PORT_MAP=80
PHPMYADMIN_PMA_HOST=MariaDB
# Node Configurations
NODE_DOCKERFILE=.docker/Node
NODE_CLIENT_PORT=9091
NODE_CLIENT_DIRECTORY=./Client
NODE_CLIENT_WORK_DIRECTORY=/var/client
NODE_SERVER_PORT=9092
NODE_SERVER_DIRECTORY=./Server
NODE_SERVER_WORK_DIRECTORY=/var/server- Docker: Install Docker on your system if you haven't already. You can download it here.
Setting up Laravel from your Git Repository
- Set up your environment variables in the .env file.
- Run
make project_startto start the Docker environment. - Access your PhpMyAdmin at http://localhost:9090/.
- Access your Nuxt Application at http://localhost:9091/.
- Access your ExpressJS API at http://localhost:9092/.
Contributions are welcome! If you'd like to contribute to this project, please follow the Contributing Guidelines.
This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.
Special thanks to the open-source community for their valuable contributions and inspiration.
For questions or feedback, please feel free to reach out:
- GitHub: Devitrax
Made with ❤️ by Devitrax