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

updated documentation #3099

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

palisadoes
Copy link
Contributor

@palisadoes palisadoes commented Jan 30, 2025

updated documentation

Summary by CodeRabbit

  • Documentation
    • Updated README.md with corrected image path for Talawa logo
    • Improved formatting and consistency in README.md table of contents
    • Enhanced installation documentation with detailed CLI setup instructions for Linux users
    • Added steps for PostgreSQL installation, database configuration, and Docker devcontainer setup

Copy link

coderabbitai bot commented Jan 30, 2025

Walkthrough

The pull request involves updates to two documentation files: README.md and docs/docs/docs/getting-started/installation.md. The changes primarily focus on improving documentation structure, image paths, and installation instructions. The README.md file sees modifications to its logo image path and formatting, while the installation documentation is updated with more detailed, Linux-specific command-line setup instructions.

Changes

File Change Summary
README.md - Updated logo image path from public/markdown/images/... to docs/static/img/markdown/misc/...
- Adjusted formatting in Table of Contents and list indentations
docs/docs/docs/getting-started/installation.md - Replaced "IDE Setup" section with a new "Using the CLI" subsection
- Added detailed Linux-specific installation instructions
- Included steps for PostgreSQL setup, package installation, and Docker devcontainer configuration

Possibly related PRs

Suggested Labels

ignore-sensitive-files-pr


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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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.

@palisadoes palisadoes added the ignore-sensitive-files-pr The contributor has a legitimate reason for editiing protected files label Jan 30, 2025
Copy link

Our Pull Request Approval Process

Thanks for contributing!

Testing Your Code

Remember, your PRs won't be reviewed until these criteria are met:

  1. We don't merge PRs with poor code quality.
    1. Follow coding best practices such that CodeRabbit.ai approves your PR.
  2. We don't merge PRs with failed tests.
    1. When tests fail, click on the Details link to learn more.
    2. Write sufficient tests for your changes (CodeCov Patch Test). Your testing level must be better than the target threshold of the repository
    3. Tests may fail if you edit sensitive files. Ask to add the ignore-sensitive-files-pr label if the edits are necessary.
  3. We cannot merge PRs with conflicting files. These must be fixed.

Our policies make our code better.

Reviewers

Do not assign reviewers. Our Queue Monitors will review your PR and assign them.
When your PR has been assigned reviewers contact them to get your code reviewed and approved via:

  1. comments in this PR or
  2. our slack channel

Reviewing Your Code

Your reviewer(s) will have the following roles:

  1. arbitrators of future discussions with other contributors about the validity of your changes
  2. point of contact for evaluating the validity of your work
  3. person who verifies matching issues by others that should be closed.
  4. person who gives general guidance in fixing your tests

CONTRIBUTING.md

Read our CONTRIBUTING.md file. Most importantly:

  1. PRs with issues not assigned to you will be closed by the reviewer
  2. Fix the first comment in the PR so that each issue listed automatically closes

Other

  1. 🎯 Please be considerate of our volunteers' time. Contacting the person who assigned the reviewers is not advised unless they ask for your input. Do not @ the person who did the assignment otherwise.
  2. Read the CONTRIBUTING.md file make

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 39.85%. Comparing base (7d4f843) to head (cc23ef8).
Report is 2 commits behind head on develop-postgres.

Additional details and impacted files
@@                Coverage Diff                @@
##           develop-postgres    #3099   +/-   ##
=================================================
  Coverage             39.85%   39.85%           
=================================================
  Files                   453      453           
  Lines                 33203    33203           
  Branches                385      385           
=================================================
  Hits                  13234    13234           
  Misses                19969    19969           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@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

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 526b51e and cc23ef8.

⛔ Files ignored due to path filters (2)
  • docs/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • docs/static/img/markdown/misc/talawa-logo-lite-200x200.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • README.md (3 hunks)
  • docs/docs/docs/getting-started/installation.md (2 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/docs/docs/getting-started/installation.md

[style] ~248-~248: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... the docker group on your next login. You don't have to logout, just start anothe...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[misspelling] ~248-~248: Did you mean the verb “log out” instead of the noun ‘logout’?
Context: ...p on your next login. You don't have to logout, just start another session on the CLI ...

(LOG_IN)

🪛 markdownlint-cli2 (0.17.2)
docs/docs/docs/getting-started/installation.md

205-205: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


209-209: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


218-218: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


223-223: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


225-225: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


227-227: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


229-229: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


231-231: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


233-233: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


235-235: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


237-237: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


239-239: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


241-241: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


241-241: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


243-243: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


245-245: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


245-245: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


247-247: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


249-249: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


249-249: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


251-251: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


253-253: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


253-253: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


255-255: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


257-257: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


257-257: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


259-259: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)

⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (3)
README.md (1)

5-5: Documentation structure improvements look good!

The changes improve the organization of assets and enhance the readability of the documentation through consistent formatting.

Also applies to: 27-54

docs/docs/docs/getting-started/installation.md (2)

203-227: PostgreSQL setup instructions look good!

The step-by-step instructions for PostgreSQL installation and configuration are clear and accurate.

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

205-205: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


209-209: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


218-218: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


223-223: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


225-225: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


227-227: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


Line range hint 262-271: IDE setup instructions look good!

The Visual Studio Code setup instructions are clear and well-organized.

🧰 Tools
🪛 LanguageTool

[style] ~248-~248: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... the docker group on your next login. You don't have to logout, just start anothe...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[misspelling] ~248-~248: Did you mean the verb “log out” instead of the noun ‘logout’?
Context: ...p on your next login. You don't have to logout, just start another session on the CLI ...

(LOG_IN)

🪛 markdownlint-cli2 (0.17.2)

205-205: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


209-209: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


218-218: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


223-223: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


225-225: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


227-227: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


229-229: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


231-231: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


233-233: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


235-235: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


237-237: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


239-239: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


241-241: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


241-241: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


243-243: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


245-245: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


245-245: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


247-247: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


249-249: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


249-249: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


251-251: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


253-253: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


253-253: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


255-255: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


257-257: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


257-257: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


259-259: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)

Comment on lines +241 to +243
```
pnpm install -g @devcontainers/cli
```
Copy link

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Add language specifiers to code blocks.

Several code blocks are missing language specifiers, which affects syntax highlighting. Add appropriate language specifiers (e.g., bash) to the following code blocks:

  • Line 241: Installation command
  • Line 245: Docker group command
  • Line 249: User switch command
  • Line 253: Devcontainer build command
  • Line 257: Success output

Also applies to: 245-247, 249-251, 253-255, 257-259

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

241-241: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


241-241: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


243-243: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)

Comment on lines +205 to +259
```bash
sudo apt-get -y install postgresql postgresql-contrib
sudo systemctl enable postgresql.service
sudo systemctl start postgresql.service
```
1. Connect to the PostgreSQL CLI

```bash
sudo -u postgres psql

```

1. Create the database, grant permissions then exit
```sql
CREATE DATABASE talawa;
CREATE USER talawa WITH PASSWORD 'password';
GRANT ALL PRIVILEGES ON DATABASE talawa TO talawa;
GRANT ALL ON SCHEMA public TO talawa;
```
1. Exit the PostgreSQL CLI
```bash
exit
```
1. Create the `.env` file by copying the template from the `envFiles/` directory
```bash
cp envFiles/.env.devcontainer .env
```
1. Change the `.env` file's `API_POSTGRES_HOST` parameter to `localhost`.
```ini
API_POSTGRES_HOST=localhost
```
1. Install the packages
```bash
pnpm install
```
1. Intall the `devcontainers/cli` package
```
pnpm install -g @devcontainers/cli
```
1. You will now need to make your user a part of the `docker` operating system group or else you will get `permission denied` messages when starting docker later. `$USER` is a universal representation of your username. You don't need to change this in the command below.
```
sudo usermod -a -G docker $USER
```
1. You will only become a part of the `docker` group on your next login. You don't have to logout, just start another session on the CLI using the `su` command.
```
sudo su $USER -
```
1. Start the docker devcontainer
```
devcontainer build --workspace-folder .
```
1. When startup is complete, the last like of the output should be:
```
{"outcome":"success","imageName":"talawa-api"}
```
Copy link

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Add blank lines around code blocks.

For better readability, ensure all code blocks are surrounded by blank lines.

🧰 Tools
🪛 LanguageTool

[style] ~248-~248: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... the docker group on your next login. You don't have to logout, just start anothe...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[misspelling] ~248-~248: Did you mean the verb “log out” instead of the noun ‘logout’?
Context: ...p on your next login. You don't have to logout, just start another session on the CLI ...

(LOG_IN)

🪛 markdownlint-cli2 (0.17.2)

205-205: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


209-209: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


218-218: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


223-223: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


225-225: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


227-227: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


229-229: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


231-231: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


233-233: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


235-235: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


237-237: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


239-239: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


241-241: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


241-241: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


243-243: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


245-245: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


245-245: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


247-247: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


249-249: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


249-249: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


251-251: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


253-253: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


253-253: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


255-255: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


257-257: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)


257-257: Fenced code blocks should have a language specified
null

(MD040, fenced-code-language)


259-259: Fenced code blocks should be surrounded by blank lines
null

(MD031, blanks-around-fences)

```
sudo usermod -a -G docker $USER
```
1. You will only become a part of the `docker` group on your next login. You don't have to logout, just start another session on the CLI using the `su` command.
Copy link

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Improve sentence structure and fix spelling.

Consider rewording to avoid repetition and fix spelling:

  • Three sentences begin with "You"
  • Use "log out" (verb) instead of "logout" (noun)

Apply this change:

-You will only become a part of the `docker` group on your next login. You don't have to logout, just start another session on the CLI using the `su` command.
+The changes to the `docker` group will take effect on your next login. However, you don't have to log out - simply start another session on the CLI using the `su` command.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
1. You will only become a part of the `docker` group on your next login. You don't have to logout, just start another session on the CLI using the `su` command.
The changes to the `docker` group will take effect on your next login. However, you don't have to log out - simply start another session on the CLI using the `su` command.
🧰 Tools
🪛 LanguageTool

[style] ~248-~248: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... the docker group on your next login. You don't have to logout, just start anothe...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[misspelling] ~248-~248: Did you mean the verb “log out” instead of the noun ‘logout’?
Context: ...p on your next login. You don't have to logout, just start another session on the CLI ...

(LOG_IN)

@palisadoes palisadoes merged commit 74730b2 into PalisadoesFoundation:develop-postgres Jan 30, 2025
16 of 18 checks passed
@palisadoes palisadoes deleted the docs branch January 30, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-sensitive-files-pr The contributor has a legitimate reason for editiing protected files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant