Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/gurbaaz27/iitkcoin-test
- Owner: gurbaaz27
- Created: 2021-05-16T10:30:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-20T14:44:22.000Z (over 3 years ago)
- Last Synced: 2024-11-14T12:11:49.555Z (2 months ago)
- Topics: backend, flask, post-request
- Language: Python
- Homepage: https://iitk-coin-test.herokuapp.com/
- Size: 86.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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-dotenvEndpoints:
- '/' 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