Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gurbaaz27/iitkcoin-test

Recruitment test for pclub project, iitkcoin.
https://github.com/gurbaaz27/iitkcoin-test

backend flask post-request

Last synced: about 19 hours ago
JSON representation

Recruitment test for pclub project, iitkcoin.

Awesome Lists containing this project

README

        

# IITK Coin test: Web-Server

## Hosting

Deployed at .

Enter in terminal
```
curl -d '{"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
cd
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": ""}' -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