Skip to content

Commit

Permalink
Merge pull request #19 from RD-Tarun/main
Browse files Browse the repository at this point in the history
[COMPLETED]DOCUMENTATION Update
  • Loading branch information
Abhinav-ark authored Dec 26, 2024
2 parents 61fd416 + 68da1a6 commit cd0d721
Showing 1 changed file with 126 additions and 7 deletions.
133 changes: 126 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,130 @@
# amrita_pyq
![Static Badge](https://img.shields.io/badge/ampyq-darkred?logoColor=white)
![Go Badge](https://img.shields.io/badge/Go-00ADD8?logo=go&logoColor=white)
![Last Updated](https://img.shields.io/badge/Last%20Updated-December-00ADD8?style=flat&logoColor=white&labelColor=5E5D5D&color=D0A93E)

## Contributing

We welcome contributions! Please see our [Contributing Guide](.github/CONTRIBUTING.md) for more details.
# Amrita PYQ CLI Tool
<p align="center">
<img src="https://github.com/user-attachments/assets/44822d21-0e1d-4b3e-baa3-3450b5cc14fc" alt="amritalogo" width="450" height="175">
</p>

<!--
## Code of Conduct
## Overview
The Amrita PYQ CLI Tool is a command-line interface application that simplifies accessing previous year question papers (PYQs) by directly fetching and displaying them in your default browser.

This project adheres to a [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
-->
---

## Prerequisites
Ensure the following requirements are met before using the application:

- **Network**: You must be connected to the **Amrita WiFi** or use a **VPN** to access the network.
- **Development Environment**:
- **Golang** must be installed on your system.
- Ensure a working **Go Compiler** is set up.

---

## Usage Instructions

### Step 1: Connect to Amrita WiFi or VPN
Before using the tool, ensure that you are connected to **Amrita WiFi** or using a **VPN** to access the network. This is mandatory for fetching the previous year question papers.

### Step 2: Clone the Repository
```bash
git clone https://github.com/CSE-25/amrita_pyq
```

---

### Step 3: Run the Application
1. Open the `main.go` file in your preferred code editor (eg:VS Code).
2. Execute the application:
```bash
go run main.go
```
3. A menu will appear with options to choose from.

### Output
![image](https://github.com/user-attachments/assets/862562c1-4db7-4200-82d2-07f58f6fad09)

---

### Step 4: Select an Option
1. Use the menu to choose an option.
2. The tool will process your request and fetch the desired question paper.

### Output
![image](https://github.com/user-attachments/assets/0eb76815-cfd8-4f48-8c67-bec55bc65f11)

---


### Step 5: View the Question Paper
1. The question paper will automatically open as a **PDF** in your default web browser.

### Output
![image](https://github.com/user-attachments/assets/d926aad6-2adc-41ce-a1b4-c287f1ccab1d)
![image](https://github.com/user-attachments/assets/5f3df041-6a87-4be3-9f20-8cd121eac95c)

The File opened in PDF format in your default browser(in this case, Google Chrome)

---

### Step 6: Continue or Exit
1. After the PDF is displayed, you will have the option to:
- **Continue**: Press `1` to go back to the main menu.
- **Exit**: Press `0` to close the application.

### Output
![image](https://github.com/user-attachments/assets/cc4cdd7e-f1f4-4926-a00e-00adc098cb66)

---

# Local Development Environment Setup
<p align="center">
<img src="https://github.com/user-attachments/assets/7c2a4198-cfd9-4451-89a0-44637136e1f4" alt="golang" width="300" height="200">
</p>

## Installing Golang
1. Download Golang
Visit the official [Golang Downloads Page](https://golang.org/dl/) and select the installer appropriate for your operating system:
- Windows: `.msi` installer
- macOS: `.pkg` installer
- Linux: `.tar.gz` archive

2. Install Golang
- Windows/macOS:
Run the installer and follow the on-screen instructions. This will automatically configure Golang and set environment variables.
- Linux:
Extract the archive and move the files to `/usr/local`:
```bash
sudo tar -C /usr/local -xzf go<version>.linux-amd64.tar.gz
```
Add Golang to your `PATH` by appending this line to your shell's configuration file (`~/.bashrc`, `~/.zshrc`, etc.):
```bash
export PATH=$PATH:/usr/local/go/bin
```
Save the changes and reload your shell:
```bash
source ~/.bashrc
```
3. Verify Installation
Open a terminal and run:
```bash
go version
```
If Golang is installed correctly, the installed version will be displayed.
> **Note**
> If you encounter any issues related to `GOPATH`, please refer to the [GOPATH Troubleshooting Guide](https://go.dev/wiki/SettingGOPATH#windows) for detailed instructions.
---
## Developers
- [Abhinav Ramakrishnan](https://github.com/Abhinav-ark)
- [Ashwin Narayanan S](https://ashrockzzz2003.github.io/portfolio)
- [Naik Mubashir](https://github.com/naikmubashir)
---
## Documentation
- [R.D.Tarun](https://github.com/RD-Tarun)

0 comments on commit cd0d721

Please sign in to comment.