File size: 1,169 Bytes
4f163ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Deployment Instructions

## Backend Deployment (Hugging Face Spaces)

1. Create a new Space on Hugging Face:
   - Go to https://huggingface.co/spaces
   - Click "Create new Space"
   - Choose "Docker" as the SDK
   - Name: `your-username/transcreation-backend`

2. Upload files from `backend/` folder:
   - All files in this directory
   - Dockerfile
   - package.json and package-lock.json

3. Set Environment Variables:
   - MONGODB_URI=your_mongodb_atlas_connection_string
   - NODE_ENV=production
   - PORT=5000

## Frontend Deployment (Hugging Face Spaces)

1. Create another Space:
   - Name: `your-username/transcreation-frontend`
   - Choose "Docker" as the SDK

2. Upload files from `frontend/` folder:
   - All files in this directory
   - Dockerfile
   - nginx.conf

3. Set Environment Variables:
   - REACT_APP_API_URL=https://your-backend-space-url.hf.space/api

## Database Setup

1. Create MongoDB Atlas account
2. Create a new cluster
3. Get your connection string
4. Add it as MONGODB_URI environment variable

## URLs

- Backend: https://your-username-transcreation-backend.hf.space
- Frontend: https://your-username-transcreation-frontend.hf.space