Skip to content

ejero/string_to_cut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String To Cut

This is a small web application that accepts a POST request and returns a JSON object with a string containing every third letter of the original string.

Here is the link to the web app.

Web application uses

  • HTML
  • Python
  • Flask

Open terminal and run this curl command (be sure to change the text "your string here"):

curl -d '{"string_to_cut": "your string here"}' -H "Content-Type: application/json" -X POST http://rosita-flask-app.glitch.me/test

Test locally using Flask

Installation

  • Flask
  • Python 3.7 or newer

Mac/Linux

pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
pip install Flask 
export FLAK_APP=<your_app_name>
Flask run

Windows

pip install virtualenv
virtualenv <your-env>
source <your-env>\Scripts\activate
set FLASK_APP= <your_app_name>


### Terminal will show

```bash
Running on http://127.0.0.1:5000/

Learn more about Flask here

About

Small web app that returns JSON object

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published