3.2.0 • Published 9 months ago

amit-reactjs-app v3.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

NodeJS - Redis - Docker - Template

Table of Contents

Description

Features

Tech

Screenshots

Running

To run this server locally using Docker Image :

  • install Docker Desktop from Docker website and start to run in background
  • create a folder in desktop, open this folder in VS Code
  • create a .env file
  • copy /server/.env.example file variables from above and paste in .env file
  • start filling all environment variables
  • also create a compose.yaml file inside that folder
  • copy below code and paste in compose.yaml
version: "3"
services:
  server:
    image : <docker-image-name>
    ports:
      - 8000:8000
    env_file:
      - .env
    depends_on:
      - redis
    command: npm run dev # Command to run the server, no need for ./server prefix

  redis:
    image: redis/redis-stack:latest
    container_name: redis-stack
    ports:
      - 6379:6379
      - 8001:8001 # Optional: Web UI port for Redis Stack (if using Redis Stack)
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 30s
      timeout: 10s
      retries: 5
  • open VS Code terminal (Ctrl + ` )
docker compose up
  • both Redis and server started
  • check by go to url: http://localhost:8000, you will get a response means server is working fine
3.2.0

9 months ago

3.1.0

10 months ago

3.0.0

10 months ago

2.1.0

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago