This commit is contained in:
Gabriel Kheisa 2023-11-27 15:02:47 +00:00
parent 1526236f7d
commit 010cbefde0
11 changed files with 55 additions and 0 deletions

0
.gitignore vendored Normal file → Executable file
View File

13
README.md Executable file
View File

@ -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
```

42
docker-compose.yml Normal file
View File

@ -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: {}

0
package-lock.json generated Normal file → Executable file
View File

0
package.json Normal file → Executable file
View File

0
public/error.html Normal file → Executable file
View File

0
public/index.html Normal file → Executable file
View File

0
public/process.ejs Normal file → Executable file
View File

0
server.js Normal file → Executable file
View File

0
table_structure_ronaldo.sql Normal file → Executable file
View File

0
test-sanitize.js Normal file → Executable file
View File