Skip to content

Latest commit

 

History

History
130 lines (97 loc) · 4.26 KB

README.md

File metadata and controls

130 lines (97 loc) · 4.26 KB

Static Badge Go Badge Last Updated

Amrita PYQ CLI Tool

amritalogo

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.


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

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:
    go run main.go
  3. A menu will appear with options to choose from.

Output

image


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


Step 5: View the Question Paper

  1. The question paper will automatically open as a PDF in your default web browser.

Output

image image

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


Local Development Environment Setup

golang

Installing Golang

  1. Download Golang Visit the official Golang Downloads Page 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:
      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.):
      export PATH=$PATH:/usr/local/go/bin
      Save the changes and reload your shell:
      source ~/.bashrc
  3. Verify Installation Open a terminal and run:

    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 for detailed instructions.


Developers


Documentation