mirror of
https://github.com/gabrielkheisa/meme-generator-nodejs
synced 2024-12-22 18:13:19 +07:00
Compare commits
2 Commits
f6bae76629
...
4b76e83151
Author | SHA1 | Date | |
---|---|---|---|
|
4b76e83151 | ||
|
595b8af207 |
33
README.md
33
README.md
@ -4,16 +4,8 @@ This repository contains a previous <a href="https://github.com/gabrielkheisa/me
|
||||
|
||||
## 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 meme-generator-nodejs
|
||||
```
|
||||
|
||||
### 2. Explore docker-compose.yml
|
||||
Take a look at the docker-compose.yml file to understand the services and configurations defined for Docker. Create a Docker external network "meme-generator-net".
|
||||
### 1. Explore docker-compose.yml
|
||||
Take a look at the docker-compose.yml file to understand the services and configurations defined for Docker or create a Docker external network "meme-generator-net" or create a <b>docker-compose.yml</b> file and copy this configuration:
|
||||
|
||||
```yml
|
||||
# ./docker-compose.yml
|
||||
@ -50,11 +42,20 @@ services:
|
||||
volumes:
|
||||
db_data: {}
|
||||
```
|
||||
### 3. Run the Docker container
|
||||
### 2. Run the Docker container
|
||||
Run the container using Docker Compose:
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
### 3. Clone the Repository
|
||||
Clone this repository to your local machine:
|
||||
|
||||
```bash
|
||||
git clone https://repo.gabrielkheisa.xyz/gabrielkheisa/meme-generator-nodejs.git
|
||||
cd meme-generator-nodejs
|
||||
```
|
||||
|
||||
### 4. Bash into the Container
|
||||
Access the container's terminal/bash, look for it using "docker ps":
|
||||
```bash
|
||||
@ -138,14 +139,16 @@ COMMIT;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
```
|
||||
### 6. Install Python, video renderer, and all of the requirements
|
||||
### 6. Install Python, video renderer, NPM, and all of the requirements
|
||||
For video renderer purposes:
|
||||
```bash
|
||||
apk add --no-cache python3 py3-pip
|
||||
apk add make automake gcc g++ subversion python3-dev
|
||||
apk add ffmpeg
|
||||
pip3 install --upgrade pip
|
||||
pip3 install mysql-connector-python==8.0.29
|
||||
pip3 install python-dotenv
|
||||
apk add npm
|
||||
```
|
||||
### 7. Install Node.js Development or Production Tools
|
||||
In this case, for development only, use nodemon, else use pm2:
|
||||
@ -170,6 +173,10 @@ Create a screen session for npm:
|
||||
```bash
|
||||
screen
|
||||
```
|
||||
Install dependencis:
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
Run the application using npm:
|
||||
```bash
|
||||
npm start
|
||||
@ -191,4 +198,4 @@ Navigate to http://localhost:3000 or the configured endpoint in your browser to
|
||||
|
||||
### Additional Notes:
|
||||
- Modify configurations in docker-compose.yml for custom setups.
|
||||
- Ensure proper permissions and access rights when running docker commands.
|
||||
- Ensure proper permissions and access rights when running docker commands.
|
||||
|
Loading…
Reference in New Issue
Block a user