File size: 1,185 Bytes
bab3023
65c09e3
 
 
 
bab3023
65c09e3
bab3023
 
65c09e3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
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:
   ```bash
   docker build -t final-alif-implementation .
   ```

2. Run the container:
   ```bash
   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:
   ```bash
   # 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:
   ```bash
   docker-compose up -d
   ```
   
   Or use the provided deployment scripts:
   ```bash
   # On Windows
   .\docker-deploy.bat
   
   # On Linux/Mac
   ./docker-deploy.sh
   ```

4. Access the application at http://localhost:3001

## Development

1. Install dependencies:
   ```bash
   npm install
   ```

2. Run the development server:
   ```bash
   npm run dev
   ```