new-react / README.md
noumanjavaid's picture
Upload 23 files
65c09e3 verified
metadata
title: Final Alif Implementation
emoji: 🚀
colorFrom: blue
colorTo: green
sdk: docker
app_port: 3001

Final Alif Implementation

A Node.js application with React frontend.

Docker Deployment

Using Docker

  1. Build the Docker image:

    docker build -t final-alif-implementation .
    
  2. Run the container:

    docker run -p 3001:3001 \
      -e GEMINI_API_KEY=your_api_key \
      -e DATABASE_URL=your_database_url \
      final-alif-implementation
    

Using Docker Compose

  1. Create a .env.docker file from the template:

    # On Windows
    copy .env.docker.template .env.docker
    
    # On Linux/Mac
    cp .env.docker.template .env.docker
    
  2. Edit the .env.docker file with your environment variables

  3. Run with Docker Compose:

    docker-compose up -d
    

    Or use the provided deployment scripts:

    # On Windows
    .\docker-deploy.bat
    
    # On Linux/Mac
    ./docker-deploy.sh
    
  4. Access the application at http://localhost:3001

Development

  1. Install dependencies:

    npm install
    
  2. Run the development server:

    npm run dev