Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronniechong/php-python
Pi generator with Python
https://github.com/ronniechong/php-python
Last synced: about 1 month ago
JSON representation
Pi generator with Python
- Host: GitHub
- URL: https://github.com/ronniechong/php-python
- Owner: ronniechong
- Created: 2015-07-10T12:37:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-21T21:31:53.000Z (about 9 years ago)
- Last Synced: 2024-04-14T12:59:02.986Z (9 months ago)
- Language: CSS
- Homepage: https://phppython.herokuapp.com/
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#Pi Generator with Python
This is my first attempt to use Heroku to host a Python script app.
I created this UI to interact with the Python script instead of doing it via command line. The app basically generates a Pi with the number of decimals you've entered in the field. That's it.
Demo: https://phppython.herokuapp.com/
##pi.py
The script is from my Python repo: https://github.com/ronniechong/py-pi##Build and deploy steps
- Create an empty {} ```package.json``` file for Composer dependencies
- Create a ```requirements.txt``` for Python dependencies. SymPy 0.7.6 is required.
- ```heroku create app-name-here```
- Set the default buildpack to php (I think this is not necessary)
- Add an additional buildpack ```heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-python```
- ```git push heroku master```