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