Skip to content

gurbaaz27/iitkcoin-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IITK Coin test: Web-Server

Hosting

Deployed at https://iitk-coin-test.herokuapp.com/.

Enter in terminal

curl -d '{"rollno": "<rollno>"}' -H 'Content-Type: application/json' https://iitk-coin-test.herokuapp.com/coins

Specifications

Language : python3
Framework: Flask
Dependencies:
- flask
- python-dotenv

Endpoints:
- '/' or '/index' or '/home' : Landing Page
- '/coins' : Task Endpoint
- '/coins-form' : Additional endpoint created for POST request via html form

Installation

git clone <link-to-repo>
cd <repo>
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Execution

Head over to localhost:8080

flask run -p 8080
curl -d '{"rollno": "<rollno>"}' -H 'Content-Type: application/json' localhost:8080/coins

NOTE: If you want to give a POST request via rather an html form, head over to endpoint /coins-form on browser.

Gallery

- CLI

- GUI

Releases

No releases published

Packages

No packages published