Skip to content

Commit

Permalink
Add AiHint Backend
Browse files Browse the repository at this point in the history
  • Loading branch information
yitong241 committed Nov 8, 2024
1 parent b11d03b commit 1d707ca
Show file tree
Hide file tree
Showing 18 changed files with 2,445 additions and 23 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified backend/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions backend/ai-hint-service/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PORT=3006
HUGGINGFACE_API_KEY='YOUR API KEY'
2 changes: 2 additions & 0 deletions backend/ai-hint-service/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
dist/
23 changes: 23 additions & 0 deletions backend/ai-hint-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Use an official Node.js runtime as the base image
FROM node:18-alpine

# Set the working directory
WORKDIR /app

# Copy package files
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY . .

# Build TypeScript (if using TypeScript)
RUN npm run build

# Expose the port
EXPOSE 3006

# Start the application
CMD ["npm", "start"]
Loading

0 comments on commit 1d707ca

Please sign in to comment.