kiranraaj19 / vit-hiring-2023-phase1-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing tool

This is a tool to help applicants test their own APIs before submission.

Usage

Make sure you have python installed.

  1. Clone the repository onto your machine.
git clone https://github.com/dyte-submissions/vit-hiring-2023-phase1-test.git
cd vit-hiring-2023-phase1-test
  1. Set up a virtual environment
python3 -m venv venv
source ./venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Replace base URL in main.py with your own
 import requests
 from data import SLOTS, FACULTIES, COURSES, REGISTER_COURSES
 
-API_BASE = 'http://localhost:3000'
+API_BASE = 'http://localhost:4000/api/v1'
 STUDENT_AUTH_TOKEN = 'ENTER STUDENT AUTH TOKEN HERE'
 ADMIN_AUTH_TOKEN = 'ENTER ADMIN AUTH TOKEN HERE'
  1. Run the test tool
python main.py

About


Languages

Language:Python 100.0%