Code Monkey home page Code Monkey logo

attaa_workshop's Introduction

Attaa_workshop

The Steps

1- Create Python Virtual Environment (Make sure that you have python or download it.download

note : I use MacOS if you use other OS system, maybe there is a bit difference in the commands.resource

python -m venv attaa   
source attaa/bin/activate       

2- Install libraries that you need for example

pip install flask gunicorn   

3- Create your foders and files then write the code for example this file (app.py)

from flask import Flask             
app = Flask(__name__)               

@app.route("/")                   
def hello():                     
   return "Hello World!"          
 
if __name__ == "__main__":          
   app.run(debug=True)               

4- run local

python app.py   

5- install heroku CLI based your system for example Mac

 brew tap heroku/brew && brew install heroku  

6- Create requirements.txt

pip freeze > requirements.txt   

7- Create Procfile file then write in it

web: gunicorn app:app   

8- heroku login

heroku login   

9- inti and add remote

git init  
heroku git:remote -a app-attaa   

10- commit and push

git add .   
git commit -am "make it better"   
git push heroku master    

To deactivate Python Virtual Environment

conda deactivate

Or

deactivate

attaa_workshop's People

Contributors

ruqyai avatar

Stargazers

 avatar Fatimah Ali avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.