Skip to content

Commit 9dd1a14

Browse files
committed
Merge branch 'staging' into GTMpaperDownload
2 parents cca301f + 9aef412 commit 9dd1a14

111 files changed

Lines changed: 15816 additions & 3621 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.

.env.example

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,21 @@
99
# When adding additional environment variables, the schema in "/src/env.js"
1010
# should be updated accordingly.
1111

12-
CLOUDINARY_API_KEY=""
13-
CLOUDINARY_SECRET=""
14-
CRYPTO_SECRET=""
15-
EMAIL_HOST=""
16-
EMAIL_PASSWORD=""
17-
EMAIL_PORT=""
18-
EMAIL_SECURE=""
19-
EMAIL_USER=""
20-
JWT_SECRET=""
21-
MONGODB_URI=""
22-
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=""
23-
NEXT_PUBLIC_CRYPTO_SECRET=""
24-
KV_URL=""
25-
KV_REST_API_URL=""
26-
KV_REST_API_TOKEN=""
27-
KV_REST_API_READ_ONLY_TOKEN=""
28-
SERVER_URL=""
12+
MONGODB_URI="" # Can be found in MongoDB Atlas dashboard or Compass (https://www.mongodb.com/docs/guides/atlas/cluster/)
13+
SERVER_URL="". # e.g. "http://localhost:3000" or "https://mydomain.com" (domain of the url you use to access the server)
14+
2915
# Google Sheets Integration
30-
GOOGLE_CLIENT_EMAIL=""
31-
GOOGLE_PRIVATE_KEY=""
32-
SHEET_ID=""
16+
GOOGLE_CLIENT_EMAIL="" # Create google client account at https://console.cloud.google.com/iam-admin/serviceaccounts
17+
GOOGLE_PRIVATE_KEY="" # In the client account, create and download a new private key
18+
SHEET_ID="". # Google sheets ID, can be found in the url of the sheet
19+
20+
# Google Cloud Storage # https://console.cloud.google.com/storage/browser
21+
GOOGLE_CLOUD_PROJECT="" # Your Google Cloud Project ID
22+
GOOGLE_CLOUD_BUCKET="" # Your Google Cloud Storage Bucket name
23+
GOOGLE_APPLICATION_CREDENTIALS_JSON="" # The content of the JSON file you download when creating a service account key
24+
25+
# Vercel KV
26+
KV_URL="" # The URL of your Vercel KV instance
27+
KV_REST_API_URL="" # The REST API URL of your Vercel KV instance
28+
KV_REST_API_TOKEN="" # The REST API token for your Vercel KV instance
29+
KV_REST_API_READ_ONLY_TOKEN="" # The read-only REST API token for your Vercel KV instance
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.npmrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
public-hoist-pattern[]=pdfjs-dist
1+
public-hoist-pattern[]=pdfjs-dist
2+
auto-install-peers=true
3+
shamefully-hoist=true

CONTRIBUTING.md

Lines changed: 38 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,57 @@
1-
## Contribution Guidelines
1+
# Contribute to the Papers Repository
22

3-
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
3+
We appreciate your interest in contributing to the `papers-codechef` repository! Please follow these guidelines to ensure a smooth and effective contribution process.
44

5-
## How to contribute
65

7-
- Decide which repository to contribute
8-
- Decide what to contribute
9-
- Fork the repo then clone it locally
10-
- Commit your work (You should create a new branch when you're doing development work that is somewhat experimental in nature.)
11-
- Create a **Pull Request**
12-
- Congrats 🎉 you have just contributed towards open source!
6+
## Getting started
137

14-
## What to contribute
8+
- If you're looking for ideas about what to work on, check out our [issues](https://github.com/CodeChefVIT/papers-codechef/issues)
9+
- If you have a bugfix to report ensure that you are on the latest pkull and no similar issue exists. You can then [create an bug report](https://github.com/CodeChefVIT/papers-codechef/issues/new?template=bug_report.md)
10+
- You can also propose a [feature request](https://github.com/CodeChefVIT/papers-codechef/issues/new?template=feature_request.md). Begin by filling out the template, write a brief problem statement that clearly explains the issue you want to address, without tying it to any specific solution. It doesn’t need to be long or formal; just provide enough context to clearly understand the problem before discussing possible solutions.
1511

16-
- Find an open issue to tackle
17-
- Ask if you can help write a new feature
18-
- Add / Improve Unit Testing
19-
- Write tutorials for how a project can be used and add to the readme
20-
- Review code on other people’s submissions and help improving / finding vulnerabilities
12+
## Setting up
13+
- **Fork** the repository. All the PRs would be made from this fork.
14+
- **Clone** the repository.
2115

22-
## Making a PR
23-
- Provide all the appropriate details asked in PR template
24-
- A pull request doesn’t have to represent finished work. It’s usually better to open a pull request early on, so others can watch or give feedback on your progress. Just mark it as a “WIP” (Work in Progress) in the subject line. You can always add more commits later.
16+
To get the project running, you need to set up your local environment:
2517

26-
## Opening an Issue
27-
- Make use of an appropriate Issue Template
28-
- We welcome Feature request, Bug Report, Documentation fix and others
29-
- Do not open critical security issues here, report them directly at [our email](mailto:contact@codechefvit.com).
18+
- **Create a `.env` file:** Create a new file named `.env` and use the .env.example file to create your own .env file and put in your your own environment variables to make the project functional.
19+
- **Install dependencies:** Run `pnpm i` in your terminal to install all necessary dependencies.
20+
- **Checkout staging branch**: Run `git checkout staging` to switch branches.
21+
- **Run the project:** Run `pnpm dev` to start the project.
3022

31-
## Communicating effectively
32-
**Give context.** Help others get quickly up to speed. If you’re running into an error, explain what you’re trying to do and how to reproduce it. If you’re suggesting a new idea, explain why you think it’d be useful to the project (not just to you!).
23+
## How to Contribute
3324

34-
```
35-
✔️ “X doesn’t happen when I do Y”
36-
❌ “X is broken! Please fix it.”
37-
```
25+
Once your environment is set up, you're ready to start coding.
3826

39-
**Do your homework beforehand.** It’s OK not to know things, but show that you tried. Before asking for help, be sure to check a project’s README, documentation, issues (open or closed), mailing list, and search the internet for an answer. People will appreciate when you demonstrate that you’re trying to learn.
27+
- **Create a new branch:** Use the command `git checkout -b yourName/featureName` to create a new branch for your work.
28+
- **Make your changes:** Write the code to address the issue you were assigned.
29+
- **Add changed files:** After making your changes, use `git add .` to add the modified files to Git tracking.
30+
- **Commit your changes:** Please follow standard conventional commit guidelines as outlined here: https://www.conventionalcommits.org/en/v1.0.0/
31+
- **Push your changes:** Push your commits to your forked repository using `git push`.
4032

41-
```
42-
✔️ ““I’m not sure how to implement X. I checked the help docs and didn’t find any mentions.””
43-
❌ “How do I X?”
44-
```
33+
## Submit a Pull Request
4534

46-
**Keep requests short and direct.**
35+
- **[Submit your pull request](https://github.com/CodeChefVIT/papers-codechef/compare):** Please, fill in the Pull Request template - it will help us better understand the PR and increase the chances of it getting merged quickly.
4736

48-
```
49-
✔️ “I’d like to write an API tutorial.”
50-
❌ “I was driving down the highway the other day and stopped for gas, and then I had this amazing idea for something we should be doing, but before I explain that, let me show you…“
51-
```
37+
An organization member will review the PR and discuss changes you might have to make before merging it. Any new changes you push to your branch will be automatically attached to the PR.
5238

53-
**It’s okay to ask questions (but be patient!).**
39+
---
5440

55-
```
56-
✔️ “Thanks for looking into this error. I followed your suggestions. Here’s the output.”
57-
❌ “Why can’t you fix my problem? Isn’t this your project?”
58-
```
41+
### Mandatory PR contents
5942

60-
**Respect community decisions.**
43+
Please ensure that any Pull Request you make contains these things -
6144

62-
```
63-
✔️ “I’m disappointed you can’t support my use case, but as you’ve explained it only affects a minor portion of users, I understand why. Thanks for listening.”
64-
❌ “Why won’t you support my use case? This is unacceptable!”
65-
```
45+
- Purpose and issue which the PR is made for.
46+
- Before & after screenshots if your changes involve any visual adjustments (e.g. UI changes, layout tweaks).
47+
- List of the major changes made in this PR.
48+
- Mention of any bug fixes, known issues or follow-ups needed.
6649

67-
## Misc
68-
- You are welcome to Propose a new feature by creating an **Issue**.
69-
- You may Discuss a high-level topic or idea (for example, community, vision or policies) by writing to us at our [Email](mailto:contact@codechefvit.com).
50+
**Important:** Ensure no merge conflicts exist before making a PR and run `pnpm build` to check for build errors.
7051

71-
## Attribution
72-
- [Open Source Guide](https://opensource.guide/how-to-contribute/)
52+
53+
### Tips to improve the chances of your PR getting reviewed and merged
54+
55+
- Small, focused & incremental pull requests are much easier to review.
56+
- Spend time explaining your changes in the pull request body.
57+
- Low effort PRs, such as those that just re-arrange syntax, won't be merged without a compelling justification.

README.md

Lines changed: 83 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<p align="center"><a href="https://www.codechefvit.com" target="_blank"><img src="https://i.ibb.co/4J9LXxS/cclogo.png" width=160 title="CodeChef-VIT" alt="Codechef-VIT"></a>
1+
<p align="center"><a href="https://www.codechefvit.com" target="_blank"><img src="https://i.ibb.co/4J9LXxS/cclogo.png" width=160 title="CodeChef-VIT" alt="Codechef-VIT"></a>
22
</p>
3-
.
43
<h2 align="center"> Papers </h2>
54
<br/>
65

@@ -16,7 +15,7 @@
1615
- Next.js : Framework for React applications with server-side rendering.
1716
- Tailwind CSS : Utility-first CSS framework for rapid UI development.
1817
- MongoDB & Mongoose : Database and object data modeling (ODM) for Node.js.
19-
- Cloudinary : Media storage and optimization service.
18+
- Google Cloud Storage: Media storage and optimization service.
2019
- Shadcn : Collection of pre-built components using Radix UI and Tailwind CSS.
2120
## 💡 Features:
2221

@@ -27,6 +26,7 @@
2726
- Stay updated with any new additions to the repository
2827

2928
## 🏁 Get Started
29+
Note: To get started with contributing to the repo visit [CONTRIBUTE.md](CONTRIBUTING.md)
3030

3131
The repository has two branches, 'prod' and 'staging'.
3232

@@ -63,29 +63,89 @@ To start your development server run:
6363
pnpm dev
6464
```
6565

66-
## 🐳 Using Docker
6766

68-
To run the application using Docker, follow these steps:
69-
70-
1. **Build the Docker Image**:
71-
72-
```bash
73-
docker build -t papers-codechef .
74-
```
75-
76-
2. **Run the Docker Container**:
77-
78-
```bash
79-
docker run -p 3000:3000 --env-file .env papers-codechef
80-
```
67+
Before getting started, please ensure that the .env file is properly configured. The .env.example file has been provided for your reference, with examples of environment variables to be listed.
8168

82-
3. **Using Docker Compose**:
83-
If you prefer `docker-compose`, ensure the `docker-compose.yml` file is configured, then run:
84-
```bash
85-
docker-compose up
86-
```
69+
## Developers
70+
Dev names and stats be seen in [github stats](https://github.com/CodeChefVIT/papers-codechef/graphs/contributors) page
71+
72+
## Maintainers
73+
Our top maintainers, making sure the Database of papers is maintainered and upto-date.
74+
<table>
75+
<tr>
76+
<td align="center">
77+
<a href="https://github.com/monami-somsaha">
78+
<img src="https://github.com/monami-somsaha.png?size=200" width="140" height="140" alt="Monami Som Saha avatar" />
79+
</a>
80+
<br />
81+
<b>Monami Som Saha</b>
82+
<br />
83+
<a href="https://github.com/monami-somsaha" title="GitHub: monami-somsaha">
84+
<img src="http://www.iconninja.com/files/241/825/211/round-collaboration-social-github-code-circle-network-icon.svg" width="24" height="24" alt="GitHub icon" />
85+
</a>
86+
<a href="https://www.linkedin.com/in/monami-somsaha" title="LinkedIn: Monami Som Saha">
87+
<img src="http://www.iconninja.com/files/863/607/751/network-linkedin-social-connection-circular-circle-media-icon.svg" width="24" height="24" alt="LinkedIn icon" />
88+
</a>
89+
</td>
90+
<td align="center">
91+
<a href="https://github.com/Skywalker-organa">
92+
<img src="https://github.com/Skywalker-organa.png?size=200" width="140" height="140" alt="Sanjana Shyamsundar avatar" />
93+
</a>
94+
<br />
95+
<b>Sanjana Shyamsundar</b>
96+
<br />
97+
<a href="https://github.com/Skywalker-organa" title="GitHub: Skywalker-organa">
98+
<img src="http://www.iconninja.com/files/241/825/211/round-collaboration-social-github-code-circle-network-icon.svg" width="24" height="24" alt="GitHub icon" />
99+
</a>
100+
<a href="https://in.linkedin.com/in/sanjana-shyamsundar-156180332" title="LinkedIn: Sanjana Shyamsundar">
101+
<img src="http://www.iconninja.com/files/863/607/751/network-linkedin-social-connection-circular-circle-media-icon.svg" width="24" height="24" alt="LinkedIn icon" />
102+
</a>
103+
</td>
104+
<td align="center">
105+
<a href="https://github.com/AqViolet">
106+
<img src="https://github.com/AqViolet.png?size=200" width="140" height="140" alt="~Heet avatar" />
107+
</a>
108+
<br />
109+
<b>Heet Jatnia</b>
110+
<br />
111+
<a href="https://github.com/AqViolet" title="GitHub: AqViolet">
112+
<img src="http://www.iconninja.com/files/241/825/211/round-collaboration-social-github-code-circle-network-icon.svg" width="24" height="24" alt="GitHub icon" />
113+
</a>
114+
<a href="https://www.linkedin.com/in/heet-jatania-4a1294275" title="LinkedIn: Heet Jatania">
115+
<img src="http://www.iconninja.com/files/863/607/751/network-linkedin-social-connection-circular-circle-media-icon.svg" width="24" height="24" alt="LinkedIn icon" />
116+
</a>
117+
</td>
118+
<td align="center">
119+
<a href="https://github.com/samyamehta16">
120+
<img src="https://github.com/samyamehta16.png?size=200" width="140" height="140" alt="Samya Mehta avatar" />
121+
</a>
122+
<br />
123+
<b>Samya Mehta</b>
124+
<br />
125+
<a href="https://github.com/samyamehta16" title="GitHub: samyamehta16">
126+
<img src="http://www.iconninja.com/files/241/825/211/round-collaboration-social-github-code-circle-network-icon.svg" width="24" height="24" alt="GitHub icon" />
127+
</a>
128+
<a href="https://in.linkedin.com/in/samyamehta16" title="LinkedIn: Samya Mehta">
129+
<img src="http://www.iconninja.com/files/863/607/751/network-linkedin-social-connection-circular-circle-media-icon.svg" width="24" height="24" alt="LinkedIn icon" />
130+
</a>
131+
</td>
132+
<td align="center">
133+
<a href="https://github.com/aarushi-patidar">
134+
<img src="https://github.com/aarushi-patidar.png?size=200" width="140" height="140" alt="Aarushi Patidar avatar" />
135+
</a>
136+
<br />
137+
<b>Aarushi Patidar</b>
138+
<br />
139+
<a href="https://github.com/aarushi-patidar" title="GitHub: aarushi-patidar">
140+
<img src="http://www.iconninja.com/files/241/825/211/round-collaboration-social-github-code-circle-network-icon.svg" width="24" height="24" alt="GitHub icon" />
141+
</a>
142+
<a href="https://in.linkedin.com/in/aarushi-patidar" title="LinkedIn: Aarushi Patidar">
143+
<img src="http://www.iconninja.com/files/863/607/751/network-linkedin-social-connection-circular-circle-media-icon.svg" width="24" height="24" alt="LinkedIn icon" />
144+
</a>
145+
</td>
146+
</tr>
147+
</table>
87148

88-
Before getting started, please ensure that the .env file is properly configured. The .env.example file has been provided for your reference, with examples of environment variables to be listed.
89149

90150
## License
91151

amplify.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 1
2+
frontend:
3+
phases:
4+
preBuild:
5+
commands:
6+
- corepack enable
7+
- pnpm install --frozen-lockfile
8+
build:
9+
commands:
10+
- pnpm run build
11+
- 'echo "GEMINI_APLKEY=$GEMINI_APLKEY" >>.env.production'
12+
- 'echo "GOOGLE_CLIENT_EMAIL=$GOOGLE_CLIENT_EMAIL" >>.env.production'
13+
- 'echo "GOOGLE_PRIVATE_KEY=$GOOGLE_PRIVATE_KEY" >>.env.production'
14+
- 'echo "KV_REST_APL_READ_ONLY_TOKEN=$KV_REST_APL_READ_ONLY_TOKEN" >>.env.production'
15+
- 'echo "KV_REST_APL_TOKEN=$KV_REST_APL_TOKEN" >>.env.production'
16+
- 'echo "KV_REST_APLURL=$KV_REST_APLURL" >>.env.production'
17+
- 'echo "KV_URL=$KV_URL" >>.env.production'
18+
- 'echo "MONGODB_URI=$MONGODB_URI" >>.env.production'
19+
- 'echo "SERVER_URL=$SERVER_URL" >>.env.production'
20+
- 'echo "SHEET_ID=$SHEET_ID" >>.env.production'
21+
- 'echo "GOOGLE_CLOUD_PROJECT=$GOOGLE_CLOUD_PROJECT" >>.env.production'
22+
- 'echo "GOOGLE_CLOUD_BUCKET=$GOOGLE_CLOUD_BUCKET" >>.env.production'
23+
- 'echo "GOOGLE_APPLICATION_CREDENTIALS_JSON=$GOOGLE_APPLICATION_CREDENTIALS_JSON" >>.env.production'
24+
25+
artifacts:
26+
baseDirectory: .next
27+
files:
28+
- "**/*"
29+
cache:
30+
paths:
31+
- .next/cache/**/*
32+
- node_modules/**/*
33+
- .pnpm-store/**/*

0 commit comments

Comments
 (0)