Skip to content

Commit ae045f8

Browse files
Merge branch 'main' into pr-941
2 parents f4695b1 + 6cc9165 commit ae045f8

108 files changed

Lines changed: 25086 additions & 7012 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Generate Contributors
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
schedule:
7+
- cron: '0 0,8,16 * * *' # three times a day at 00:00, 08:00, and 16:00 UTC
8+
workflow_dispatch: {}
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
generate:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: true
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '18'
26+
27+
- name: Install (none required)
28+
run: node -v
29+
30+
- name: Run generator
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
OWNER: devanshi14malhotra
34+
REPO: BiblioDrift
35+
PER_PAGE: '100'
36+
run: |
37+
node scripts/generate_contributors.js
38+
39+
- name: Commit and push if changed
40+
run: |
41+
git config user.name "github-actions[bot]"
42+
git config user.email "github-actions[bot]@users.noreply.github.com"
43+
git add frontend/data/contributors.json
44+
if ! git diff --cached --quiet; then
45+
git commit -m "chore: update contributors.json"
46+
git push
47+
else
48+
echo "No changes to commit"
49+
fi

‎.gitignore‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ mood_analysis/mood_cache.json
66
*.cache
77

88
# Environment variables
9-
.env
10-
.env.local
11-
.env.production
12-
.env.development
9+
*/.env
10+
*/.env.local
11+
*/.env.production
12+
*/.env.development
1313

1414
# Sensitive local files
1515
*.token
@@ -32,4 +32,9 @@ instance/
3232
*.db
3333
# Virtual Environment
3434
venv/
35+
36+
node_modules/
3537
.venv/
38+
39+
# Local untracked scripts folder
40+
untracked/

‎Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM python:3.11-slim
44
# Set environment variables
55
ENV PYTHONDONTWRITEBYTECODE=1
66
ENV PYTHONUNBUFFERED=1
7-
ENV FLASK_APP=app.py
7+
ENV FLASK_APP=backend/app.py
88
ENV FLASK_HOST=0.0.0.0
99
ENV PORT=5000
1010

@@ -28,4 +28,4 @@ COPY . .
2828
EXPOSE 5000
2929

3030
# Run the application
31-
CMD ["python", "app.py"]
31+
CMD ["python", "backend/app.py"]

‎Dockerfile.frontend‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM nginx:alpine
2+
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
3+
COPY ./frontend /usr/share/nginx/html
4+
EXPOSE 80
5+
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)