Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implemented A Setup File #915

Merged
merged 9 commits into from
May 22, 2024

Conversation

keshavsinha17
Copy link

@keshavsinha17 keshavsinha17 commented May 17, 2024

Pull Request Details

Added Setup.js file which will help setting up env with one command.

Description

Implemented setup files for both the client and backend, along with robust validation features. The improvements include clearer documentation for setup for both client and backend, ensuring smooth environment variable configuration for developers.

Fixes

Fixes #840

Type of PR

  • Bug fix
  • Feature enhancement
  • Documentation update
  • Refactoring
  • Other (specify): _______________

Summary

However, the old method can still be used this method will ease the workflow, hence reduce copy-pasting.

Screenshots (if applicable)

image
image
image

Checklist

  • I have read and followed the Pull Requests and Issues guidelines.
  • The code has been properly linted and formatted using npm run lint:fix and npm run format:fix.
  • I have tested the changes thoroughly before submitting this pull request.
  • I have provided relevant issue numbers, snapshots, and videos after making the changes.
  • I have not borrowed code without disclosing it, if applicable.
  • This pull request is not a Work In Progress (WIP), and only completed and tested changes are included.
  • I have tested these changes locally.
  • My code follows the project's style guidelines.
  • I have updated the documentation accordingly.
  • This PR has a corresponding issue in the issue tracker.

Summary by CodeRabbit

  • Documentation

    • Updated setup instructions in client/README.md and backend/README.md to simplify environment variable configuration.
    • Added detailed steps for both automatic and manual environment variable setup.
  • New Features

    • Introduced a new script (npm run setup) for automatic environment variable setup in both client and backend directories.
  • Dependencies

    • Updated axios to version ^1.6.7 in the backend.
    • Added inquirer version ^9.2.22 to the backend dependencies.
  • Scripts

    • Added a new setup script in backend/package.json and client/package.json for easier environment configuration.

Copy link

netlify bot commented May 17, 2024

👷 Deploy request for v2-digitomize pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ca5fd1e

Copy link

netlify bot commented May 17, 2024

👷 Deploy request for digitomize pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ca5fd1e

Copy link
Contributor

coderabbitai bot commented May 17, 2024

Walkthrough

The recent changes introduce a new automated setup process for environment variables in both the client and backend directories. This is achieved through an npm run setup script, which utilizes inquirer to prompt users for necessary inputs and generates a .env file. The README files have been updated to reflect this new setup method, providing both automated and manual instructions for configuring environment variables.

Changes

Files Change Summary
client/README.md Restructured instructions for setting up environment variables, added a new section for manual setup, and updated section titles.
backend/README.md Updated instructions to use npm run setup for configuring environment variables.
backend/package.json Added a new script "setup": "node setup-env.js", updated "axios" version to "^1.6.7", and added "inquirer": "^9.2.22" to dependencies.
backend/setup-env.js Introduced a script that prompts the user for various environment variables and writes them to a .env file.
client/package.json Added a new script "setup": "node setup-env.js" to the scripts section for setting up the environment.

Assessment against linked issues

Objective Addressed Explanation
Implement a setup file to prompt the user for all required environment variables (#840)
Use inquirer for the setup script (#840)

In the code's embrace, the setup's delight,
Environment variables now set up just right.
With npm run setup, no more manual plight,
A rabbit's touch, making things bright! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@keshavsinha17 keshavsinha17 changed the title Implemented A Setup File feat:Implemented A Setup File May 17, 2024
@keshavsinha17 keshavsinha17 changed the title feat:Implemented A Setup File feat: Implemented A Setup File May 17, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Out of diff range and nitpick comments (1)
backend/README.md (1)

Line range hint 140-140: Typographical error in the documentation.

- - Copy the contents of the `.example.env` in the the backend directory and paste them into your created .env file
+ - Copy the contents of the `.example.env` in the backend directory and paste them into your created .env file

Correct the repeated word for clarity.

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 5130365 and 965ea7a.
Files ignored due to path filters (2)
  • backend/package-lock.json is excluded by !**/package-lock.json
  • client/package-lock.json is excluded by !**/package-lock.json
Files selected for processing (6)
  • backend/README.md (2 hunks)
  • backend/package.json (3 hunks)
  • backend/setup-env.js (1 hunks)
  • client/README.md (2 hunks)
  • client/package.json (2 hunks)
  • client/setup-env.js (1 hunks)
Files skipped from review due to trivial changes (1)
  • backend/setup-env.js
Additional Context Used
LanguageTool (19)
backend/README.md (9)

Near line 61: Loose punctuation mark.
Context: ... # Main server file ``` - backend: Main folder for the backend. - `commu...


Near line 62: Loose punctuation mark.
Context: ... folder for the backend. - community: Controllers, middlewares, models, route...


Near line 63: Loose punctuation mark.
Context: ...community members. - controllers: Logic for handling API requests related...


Near line 70: Loose punctuation mark.
Context: ...routes for contests. - controllers: Logic for handling API requests related...


Near line 77: Loose punctuation mark.
Context: ...heets and questions. - controllers: Logic for handling API requests realted...


Near line 82: Loose punctuation mark.
Context: ...and utils for users. - controllers: Logic for handling API requests related...


Near line 140: Possible typo: you repeated a word
Context: ...y the contents of the .example.env in the the backend directory and paste them into y...


Near line 182: This adverb was used twice in the sentence. Consider removing one of them or replacing them with a synonym.
Context: ... ### Setting up Locally To use MongoDB locally, you need to first download MongoDB loc...


Near line 216: It seems that a comma is missing.
Context: ...ze ## Firebase Credentials To get credentials you should first have a firebase projec...

client/README.md (10)

Near line 60: Loose punctuation mark.
Context: ...└── /leaderboard ``` - assets: This directory contains static assets s...


Near line 62: Loose punctuation mark.
Context: ...cation's user interface. - components: Reusable React components are stored he...


Near line 64: Loose punctuation mark.
Context: ...consistency and modularity. - context: This directory contains context provide...


Near line 66: Loose punctuation mark.
Context: ...unctions for state management. - core: Houses core functionalities or services...


Near line 68: Loose punctuation mark.
Context: ...ther essential utilities. - dsaSheets: Contains components, implementations, o...


Near line 70: Loose punctuation mark.
Context: ...ilities related to DSA content. - lib: This directory stores additional librar...


Near line 72: Loose punctuation mark.
Context: ...used across your application. - pages: Organized React components that represe...


Near line 74: Loose punctuation mark.
Context: ... or views in your application. - user: Contains components and functionality r...


Near line 106: The abbreviation “e.g.” (= for example) requires two periods.
Context: ... manual configuration.Move to directory e.g backend and run as follows _(You can us...


Near line 124: Possible typo: you repeated a word
Context: ...nt directory - Copy the .example.env in the the client directory and paste it's content...

Additional comments not posted (8)
backend/package.json (2)

20-20: Update to axios version ^1.6.7 is noted.

Ensure that this version does not introduce any breaking changes or conflicts with other dependencies.


29-29: Addition of inquirer dependency.

Ensure that the version ^9.2.22 of inquirer is compatible with the node version used in this project.

client/package.json (2)

12-12: Addition of setup script to package.json.

Ensure that the script setup-env.js is properly implemented and tested.


34-34: Addition of inquirer dependency in the client package.

Verify that inquirer version ^9.2.21 is compatible with the project's node version and does not conflict with other dependencies.

client/setup-env.js (3)

1-2: Import statements for inquirer and fs.

These imports are essential for the functionality of the setup script.


4-112: Setup questions array.

The structured approach to collecting environment variables enhances user experience and reduces configuration errors.


114-127: Implementation of the setup function.

The function is well-implemented with proper error handling. Ensure that the .env file permissions are set correctly to avoid exposing sensitive information.

backend/README.md (1)

100-100: Updated instructions for setting environment variables.

The instructions are clear and direct users to use the new npm run setup script, which is a good practice for consistency and ease of setup.

backend/package.json Show resolved Hide resolved
client/README.md Outdated Show resolved Hide resolved
client/README.md Outdated Show resolved Hide resolved
@pranshugupta54
Copy link
Member

Please check all reviews by coderabbit

@keshavsinha17
Copy link
Author

Please check all reviews by coderabbit

on it

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Out of diff range and nitpick comments (2)
client/README.md (2)

Line range hint 166-166: Ensure headings are surrounded by blank lines for better readability.

+ 
## Contributing
+ 

Adding blank lines around headings improves readability and helps in maintaining a clean structure in markdown documents.


Line range hint 167-167: Surround lists with blank lines for consistency.

+ 
- Run `npm run lint` to check for errors using the linter.
- Run `npm run lint-fix` to have the linter automatically fix errors where possible.
+ 

This change ensures that lists are visually separated from other text, which enhances readability.

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 965ea7a and 0d693c2.
Files selected for processing (1)
  • client/README.md (2 hunks)
Additional Context Used
LanguageTool (8)
client/README.md (8)

Near line 60: Loose punctuation mark.
Context: ...└── /leaderboard ``` - assets: This directory contains static assets s...


Near line 62: Loose punctuation mark.
Context: ...cation's user interface. - components: Reusable React components are stored he...


Near line 64: Loose punctuation mark.
Context: ...consistency and modularity. - context: This directory contains context provide...


Near line 66: Loose punctuation mark.
Context: ...unctions for state management. - core: Houses core functionalities or services...


Near line 68: Loose punctuation mark.
Context: ...ther essential utilities. - dsaSheets: Contains components, implementations, o...


Near line 70: Loose punctuation mark.
Context: ...ilities related to DSA content. - lib: This directory stores additional librar...


Near line 72: Loose punctuation mark.
Context: ...used across your application. - pages: Organized React components that represe...


Near line 74: Loose punctuation mark.
Context: ... or views in your application. - user: Contains components and functionality r...

client/README.md Outdated Show resolved Hide resolved
client/README.md Outdated Show resolved Hide resolved
client/README.md Outdated Show resolved Hide resolved
@keshavsinha17
Copy link
Author

i changed what it asked to ... do I need to give a description too of setup script ?

client/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 0d693c2 and cbffc57.
Files selected for processing (1)
  • client/README.md (4 hunks)
Additional Context Used
LanguageTool (8)
client/README.md (8)

Near line 60: Loose punctuation mark.
Context: ...└── /leaderboard ``` - assets: This directory contains static assets s...


Near line 62: Loose punctuation mark.
Context: ...cation's user interface. - components: Reusable React components are stored he...


Near line 64: Loose punctuation mark.
Context: ...consistency and modularity. - context: This directory contains context provide...


Near line 66: Loose punctuation mark.
Context: ...unctions for state management. - core: Houses core functionalities or services...


Near line 68: Loose punctuation mark.
Context: ...ther essential utilities. - dsaSheets: Contains components, implementations, o...


Near line 70: Loose punctuation mark.
Context: ...ilities related to DSA content. - lib: This directory stores additional librar...


Near line 72: Loose punctuation mark.
Context: ...used across your application. - pages: Organized React components that represe...


Near line 74: Loose punctuation mark.
Context: ... or views in your application. - user: Contains components and functionality r...

Additional comments not posted (2)
client/README.md (2)

106-107: Clarify the setup instructions for better understanding.

- By running `npm run setup`, you can quickly and easily set up environment variables for your client and backend directory respectively without the hassle of manual configuration. Move to the respective directory (e.g., client) and run the following command
+ By running `npm run setup`, you can quickly and easily set up environment variables for your client and backend directory respectively without the hassle of manual configuration. Move to the respective directory (e.g., client) and run the following command:

Ensure that the instructions are clear and grammatically correct.


124-124: Correct typographical error in the documentation.

- - Fill in the empty fields with the values from your firebase project 
+ - Fill in the empty fields with the values from your firebase project

Trailing spaces can lead to unnecessary changes in version control systems and should be avoided for cleaner code.

client/README.md Outdated Show resolved Hide resolved
client/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Out of diff range and nitpick comments (1)
client/README.md (1)

Line range hint 60-74: Clean up loose punctuation marks for better readability.

- └── /leaderboard         ```  - `assets`: This directory contains static assets s...
+ └── /leaderboard         ``` - `assets`: This directory contains static assets s...
- ...cation's user interface.  - `components`: Reusable React components are stored he...
+ ...cation's user interface. - `components`: Reusable React components are stored he...
- ...consistency and modularity.  - `context`: This directory contains context provide...
+ ...consistency and modularity. - `context`: This directory contains context provide...
- ...unctions for state management.  - `core`: Houses core functionalities or services...
+ ...unctions for state management. - `core`: Houses core functionalities or services...
- ...ther essential utilities.  - `dsaSheets`: Contains components, implementations, o...
+ ...ther essential utilities. - `dsaSheets`: Contains components, implementations, o...
- ...ilities related to DSA content.  - `lib`: This directory stores additional librar...
+ ...ilities related to DSA content. - `lib`: This directory stores additional librar...
- ...used across your application.  - `pages`: Organized React components that represe...
+ ...used across your application. - `pages`: Organized React components that represe...
- ... or views in your application.  - `user`: Contains components and functionality r...
+ ... or views in your application. - `user`: Contains components and functionality r...
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between cbffc57 and befb8bf.
Files selected for processing (1)
  • client/README.md (4 hunks)
Additional Context Used
LanguageTool (8)
client/README.md (8)

Near line 60: Loose punctuation mark.
Context: ...└── /leaderboard ``` - assets: This directory contains static assets s...


Near line 62: Loose punctuation mark.
Context: ...cation's user interface. - components: Reusable React components are stored he...


Near line 64: Loose punctuation mark.
Context: ...consistency and modularity. - context: This directory contains context provide...


Near line 66: Loose punctuation mark.
Context: ...unctions for state management. - core: Houses core functionalities or services...


Near line 68: Loose punctuation mark.
Context: ...ther essential utilities. - dsaSheets: Contains components, implementations, o...


Near line 70: Loose punctuation mark.
Context: ...ilities related to DSA content. - lib: This directory stores additional librar...


Near line 72: Loose punctuation mark.
Context: ...used across your application. - pages: Organized React components that represe...


Near line 74: Loose punctuation mark.
Context: ... or views in your application. - user: Contains components and functionality r...

Additional comments not posted (6)
client/README.md (6)

106-110: Clarify the setup instructions for better understanding.


126-126: Remove trailing spaces for cleaner code.


Line range hint 177-177: Add blank lines around the heading for better readability.


122-126: Clarify the manual setup instructions to enhance understanding.


Line range hint 141-160: The instructions for setting up a new Firebase project are clear and detailed.


Line range hint 163-177: The sections on contributing and licensing are clear and concise.

client/README.md Outdated Show resolved Hide resolved
client/README.md Show resolved Hide resolved
@pranshugupta54
Copy link
Member

Can you please have some changes for client README, It's very difficult to understand that we have 2 options, it looks like continuous method - maybe change the text under Configuration which tells about 2 different methods.
image

@keshavsinha17
Copy link
Author

I'll do it

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

Out of diff range and nitpick comments (3)
client/README.md (1)

Line range hint 176-176: Add blank lines around the heading for better readability.

+
### Creating New firebase project and setting up .env variables
+
backend/README.md (2)

Line range hint 182-182: Improve clarity by avoiding repetition.

- To use MongoDB locally, you need to first download MongoDB locally.
+ To use MongoDB locally, you need to first download it.

Line range hint 216-216: Add a comma for better readability.

- To get credentials you should first have a firebase project.
+ To get credentials, you should first have a firebase project.
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between befb8bf and a48726c.
Files selected for processing (3)
  • backend/README.md (2 hunks)
  • backend/setup-env.js (1 hunks)
  • client/README.md (4 hunks)
Files skipped from review as they are similar to previous changes (1)
  • backend/setup-env.js
Additional Context Used
LanguageTool (20)
backend/README.md (9)

Near line 61: Loose punctuation mark.
Context: ... # Main server file ``` - backend: Main folder for the backend. - `commu...


Near line 62: Loose punctuation mark.
Context: ... folder for the backend. - community: Controllers, middlewares, models, route...


Near line 63: Loose punctuation mark.
Context: ...community members. - controllers: Logic for handling API requests related...


Near line 70: Loose punctuation mark.
Context: ...routes for contests. - controllers: Logic for handling API requests related...


Near line 77: Loose punctuation mark.
Context: ...heets and questions. - controllers: Logic for handling API requests realted...


Near line 82: Loose punctuation mark.
Context: ...and utils for users. - controllers: Logic for handling API requests related...


Near line 110: Possible typo: you repeated a word
Context: ...y the contents of the .example.env in the the backend directory and paste them into y...


Near line 182: This adverb was used twice in the sentence. Consider removing one of them or replacing them with a synonym.
Context: ... ### Setting up Locally To use MongoDB locally, you need to first download MongoDB loc...


Near line 216: It seems that a comma is missing.
Context: ...ze ## Firebase Credentials To get credentials you should first have a firebase projec...

client/README.md (11)

Near line 15: A determiner appears to be missing. Consider inserting it.
Context: ...variables-individually) - [Creating New firebase project and setting up .env va...


Near line 62: Loose punctuation mark.
Context: ...└── /leaderboard ``` - assets: This directory contains static assets s...


Near line 64: Loose punctuation mark.
Context: ...cation's user interface. - components: Reusable React components are stored he...


Near line 66: Loose punctuation mark.
Context: ...consistency and modularity. - context: This directory contains context provide...


Near line 68: Loose punctuation mark.
Context: ...unctions for state management. - core: Houses core functionalities or services...


Near line 70: Loose punctuation mark.
Context: ...ther essential utilities. - dsaSheets: Contains components, implementations, o...


Near line 72: Loose punctuation mark.
Context: ...ilities related to DSA content. - lib: This directory stores additional librar...


Near line 74: Loose punctuation mark.
Context: ...used across your application. - pages: Organized React components that represe...


Near line 76: Loose punctuation mark.
Context: ... or views in your application. - user: Contains components and functionality r...


Near line 108: The word “Setup” is a noun. The verb is spelled with a space.
Context: ...m install ``` # Configuration You can Setup Environment Variable Using One of Two M...


Near line 140: A determiner appears to be missing. Consider inserting it.
Context: ...setting-up-env-variables) ### Creating New firebase project and setting up .env va...

client/README.md Outdated Show resolved Hide resolved
client/README.md Show resolved Hide resolved
client/README.md Outdated Show resolved Hide resolved
backend/README.md Outdated Show resolved Hide resolved
backend/README.md Show resolved Hide resolved
backend/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 10

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between a48726c and ff952b0.
Files selected for processing (2)
  • backend/README.md (2 hunks)
  • client/README.md (4 hunks)
Additional Context Used
LanguageTool (16)
backend/README.md (8)

Near line 61: Loose punctuation mark.
Context: ... # Main server file ``` - backend: Main folder for the backend. - `commu...


Near line 62: Loose punctuation mark.
Context: ... folder for the backend. - community: Controllers, middlewares, models, route...


Near line 63: Loose punctuation mark.
Context: ...community members. - controllers: Logic for handling API requests related...


Near line 70: Loose punctuation mark.
Context: ...routes for contests. - controllers: Logic for handling API requests related...


Near line 77: Loose punctuation mark.
Context: ...heets and questions. - controllers: Logic for handling API requests realted...


Near line 82: Loose punctuation mark.
Context: ...and utils for users. - controllers: Logic for handling API requests related...


Near line 183: This adverb was used twice in the sentence. Consider removing one of them or replacing them with a synonym.
Context: ... ### Setting up Locally To use MongoDB locally, you need to first download MongoDB loc...


Near line 217: It seems that a comma is missing.
Context: ...ze ## Firebase Credentials To get credentials you should first have a firebase projec...

client/README.md (8)

Near line 62: Loose punctuation mark.
Context: ...└── /leaderboard ``` - assets: This directory contains static assets s...


Near line 64: Loose punctuation mark.
Context: ...cation's user interface. - components: Reusable React components are stored he...


Near line 66: Loose punctuation mark.
Context: ...consistency and modularity. - context: This directory contains context provide...


Near line 68: Loose punctuation mark.
Context: ...unctions for state management. - core: Houses core functionalities or services...


Near line 70: Loose punctuation mark.
Context: ...ther essential utilities. - dsaSheets: Contains components, implementations, o...


Near line 72: Loose punctuation mark.
Context: ...ilities related to DSA content. - lib: This directory stores additional librar...


Near line 74: Loose punctuation mark.
Context: ...used across your application. - pages: Organized React components that represe...


Near line 76: Loose punctuation mark.
Context: ... or views in your application. - user: Contains components and functionality r...

client/README.md Show resolved Hide resolved
client/README.md Show resolved Hide resolved
client/README.md Show resolved Hide resolved
client/README.md Show resolved Hide resolved
client/README.md Show resolved Hide resolved
backend/README.md Show resolved Hide resolved
backend/README.md Show resolved Hide resolved
backend/README.md Show resolved Hide resolved
backend/README.md Show resolved Hide resolved
backend/README.md Show resolved Hide resolved
@pranshugupta54
Copy link
Member

Backend:

  • HACKATHONS field for true/false like CONTEST
  • Make Yes default for contests
  • add NOVU_API_KEY, empty as default

Client:

  • Add VITE_REACT_APP_VAPID_KEY
  • Also include "firebase" for each field, it's confusing "Enter API key" - which API Key??
  • Also for each of the firebase field - you can add values as default from our gist - currently they all are blank by default

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between ff952b0 and ca5fd1e.
Files selected for processing (2)
  • backend/setup-env.js (1 hunks)
  • client/setup-env.js (1 hunks)
Files skipped from review as they are similar to previous changes (2)
  • backend/setup-env.js
  • client/setup-env.js

@pranshugupta54
Copy link
Member

@coderabbitai review again

Copy link
Contributor

coderabbitai bot commented May 22, 2024

@pranshugupta54, I have reviewed the changes in the pull request. Here are the key points:

Backend

  1. setup-env.js:

    • Added HACKATHONS field for true/false similar to CONTEST.
    • Made "Yes" the default for contests.
    • Added NOVU_API_KEY with an empty default value.
  2. README.md:

    • Clearly differentiates between the two methods of setting up environment variables: using the npm run setup script and manually creating a .env file from the .example.env template.

Client

  1. setup-env.js:

    • Added VITE_REACT_APP_VAPID_KEY.
    • Clarified each field related to "firebase" to avoid confusion about which API key is being referred to.
    • Included default values for each firebase field from the provided gist.
  2. README.md:

    • Clearly differentiates between the two methods of setting up environment variables: using the npm run setup script and manually creating a .env file from the .example.env template.

The changes align with the requested modifications and improve the clarity and functionality of the setup process for both the backend and client.

Analysis chain
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Fetch the contents of setup-env.js and README.md files for both backend and client
cat backend/setup-env.js
cat client/setup-env.js
cat backend/README.md
cat client/README.md

Length of output: 25904

Actions Performed

Comments resolved and changes approved.

@pranshugupta54 pranshugupta54 merged commit a325091 into digitomize:main May 22, 2024
6 checks passed
@pranshugupta54
Copy link
Member

🚀 Congratulations on the successful PR merge! 🌟
Thank you for your valuable contribution! 🎉
Let's continue to make waves in open source. Share your achievement on social media and tag Digitomize to help spread the word.

Thank you for your dedication!

@all-contributors please add @keshavsinha17 for code

@holopin-bot @keshavsinha17 c-st

Copy link

holopin-bot bot commented May 22, 2024

Congratulations @keshavsinha17, you just earned a holobyte! Here it is: https://holopin.io/holobyte/clwifx4c663500cl4z283g34m

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

Copy link
Contributor

@pranshugupta54

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

@keshavsinha17 already contributed before to code

@keshavsinha17 keshavsinha17 deleted the feat/implement-setup branch May 23, 2024 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Implement a setup file
2 participants