Click to expand
Make sure to have Python 3.6 or newer, and pip installed.
$ pip install virtualenv
Make sure to create a Python3 instead of Python2 environment by referencing its binaries.
$ which python3
/usr/bin/python3
You can use any name you want, we will use "venv".
$ virtualenv -p /usr/bin/python3 venv
$ . venv/bin/activate
Now you have activated your virtual environment and your terminal should display its name as so:
$(venv)
$(venv) pip3 install -r requirements.txt
$(venv) flask run
You’ll see output similar to this:
Serving Flask app "app"
Environment: development
Debug mode: on
Running on http://127.0.0.1:5000/
Restarting with stat
Debugger is active!
Debugger PIN: 298-204-950
Open the link in your browser.
Make sure you have installed Heroku CLI, and have authentication to the Heroku project.
Install the Heroku CLI Download and install the Heroku CLI.
If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key. Login into Heroku
$ heroku login
Clone the repository Use Git to clone heroku-app's source code to your local machine.
$ heroku git:clone -a <heroku-app>
$ cd <heroku-app>
Deploy your changes Make some changes to the code you just cloned and deploy them to Heroku using Git.
$ git add .
$ git commit -am "make it better"
$ git push heroku master
Set-Up Google AutoML
$ export GOOGLE_APPLICATION_CREDENTIALS=./credentials.json
$ gcloud auth login
$ gcloud config set project ice-atis
$ gcloud auth activate-service-account [email protected] --key-file=./credentials.json --project=translate
$ gcloud projects add-iam-policy-binding translate --member [email protected]
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
🌟 PLEASE STAR THIS REPO IF YOU FOUND SOMETHING INTERESTING 🌟