Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI + Auto Deploy to Render

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
ci:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test

- name: Deploy to Render
if: github.ref == 'refs/heads/main'
run: |
curl -X POST "$RENDER_DEPLOY_HOOK_URL"
env:
RENDER_DEPLOY_HOOK_URL: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Dependencies
node_modules/
.serverless/
__pycache__/
*.pyc
*.pyo
Expand Down
2 changes: 1 addition & 1 deletion backend/core/app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware


def create_app() -> FastAPI:
app = FastAPI(title="Fluent API", description="Data Analysis and Function Generation API", version="1.0.0")

# Allow all origins so the deployed frontend (Vercel) can reach the API
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:3000", "https://flluent.vercel.app"],
Expand Down
10 changes: 5 additions & 5 deletions frontend/public/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"backend": {
"baseUrl": "https://gce61ejzvh.execute-api.ap-south-1.amazonaws.com"
}
}
{
"backend": {
"baseUrl": "https://fluent-bc62.onrender.com"
}
}
Loading