Skip to content

3adel/derSatz-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install flask server on an Ubuntu intance

  1. Install python
  2. Install pip
  3. Install Goose. On Ubuntu: pip install goose-extractor
  4. Install Flask on Ubuntu: https://www.digitalocean.com/community/tutorials/how-to-deploy-a-flask-application-on-an-ubuntu-vps
  5. sudo python /var/www/flaskapp/flaskapp/init.py
  6. Make a request. Here's an example: http://127.0.0.1:5000/api?url=http://www.bbc.com/news/world-us-canada-41134799

Install flask server locally (Mac)

  1. Install python
  2. Install pip
  3. Install Goose
  4. Install Flask
  5. Create a Flask server
  6. cd to the folder where the flask python file apiServer.py is
  7. $ export FLASK_DEBUG=1
  8. $ export FLASK_APP=apiServer.py
  9. $ flask run
  10. Make a request. Here's an example: http://127.0.0.1:5000/api?url=http://www.bbc.com/news/world-us-canada-41134799

Setup serverapi to run on boot

https://github.com/3adel/TextAnalyzer-API/blob/master/apiserver/How%20To%20Serve%20Flask%20Applications%20with%20uWSGI%20and%20Nginx%20on%20Ubuntu%2016.04%20%7C%20DigitalOcean.pdf

Some useful links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published