From 010cbefde00a9fac07ceb6b75c9827c719a8cae3 Mon Sep 17 00:00:00 2001 From: gabrielkheisa Date: Mon, 27 Nov 2023 15:02:47 +0000 Subject: [PATCH] update --- .gitignore | 0 README.md | 13 ++++++++++++ docker-compose.yml | 42 +++++++++++++++++++++++++++++++++++++ package-lock.json | 0 package.json | 0 public/error.html | 0 public/index.html | 0 public/process.ejs | 0 server.js | 0 table_structure_ronaldo.sql | 0 test-sanitize.js | 0 11 files changed, 55 insertions(+) mode change 100644 => 100755 .gitignore create mode 100755 README.md create mode 100644 docker-compose.yml mode change 100644 => 100755 package-lock.json mode change 100644 => 100755 package.json mode change 100644 => 100755 public/error.html mode change 100644 => 100755 public/index.html mode change 100644 => 100755 public/process.ejs mode change 100644 => 100755 server.js mode change 100644 => 100755 table_structure_ronaldo.sql mode change 100644 => 100755 test-sanitize.js diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/README.md b/README.md new file mode 100755 index 0000000..5a0e871 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# Meme generator rewritten on Node.js + +This repository contains a previous LEMP stack meme generator, rewritten on Node.js along with necessary steps to set up and run the app. + +## Getting Started + +### 1. Clone the Repository +Clone this repository to your local machine: + +```bash +git clone https://repo.gabrielkheisa.xyz/gabrielkheisa/meme-generator-nodejs.git +cd repository_name +``` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d0e018a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,42 @@ +# ./docker-compose.yml +version: '3' + +networks: + meme-generator-net: + external: true + name: "meme-generator-net" + +services: + app: + image: adhocore/lemp:8.1 + # For different app you can use different names. (eg: ) + container_name: memegenerator + volumes: + # app source code + - ./html:/var/www/html + # db data persistence + # Here you can also volume php ini settings + # - /path/to/zz-overrides:/usr/local/etc/php/conf.d/zz-overrides.ini + environment: + MYSQL_ROOT_PASSWORD: supersecurepwd + MYSQL_DATABASE: appdb + MYSQL_USER: dbusr + MYSQL_PASSWORD: securepwd + # for postgres you can pass in similar env as for mysql but with PGSQL_ prefix + networks: + - "meme-generator-net" + restart: always + + + phpmyadmin: + image: phpmyadmin/phpmyadmin + container_name: phpmyadmin_memegenerator + restart: always + environment: + - PMA_HOST=app + - PMA_PORT=3306 + networks: + - "meme-generator-net" + +volumes: + db_data: {} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json old mode 100644 new mode 100755 diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/public/error.html b/public/error.html old mode 100644 new mode 100755 diff --git a/public/index.html b/public/index.html old mode 100644 new mode 100755 diff --git a/public/process.ejs b/public/process.ejs old mode 100644 new mode 100755 diff --git a/server.js b/server.js old mode 100644 new mode 100755 diff --git a/table_structure_ronaldo.sql b/table_structure_ronaldo.sql old mode 100644 new mode 100755 diff --git a/test-sanitize.js b/test-sanitize.js old mode 100644 new mode 100755