Python Forum

Full Version: Clone a project
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do i clone a project from github ? What are the steps required to run the project after downloading from github
(Jul-29-2018, 02:24 PM)saisankalpj Wrote: [ -> ]How do i clone a project from github ?
git clone repo_name.git
Quote:What are the steps required to run the project after downloading from github
Most of time is just to get all source code,then can make changes as example be contributor to a open source projects.
This is good video Make Your First Contribution on GitHub

Can look at the a couple examples.
logzero: Python logging made easy so to run this there is no need at all to clone Repo.
Most also has PyPi together with GitHub Repo.
So using it is just pip install logzero

My tutorial here.
So this is a web-development tutorial then is not common to pip install.
So running my code code is clone Repo,then run app.py.
Look like this weather-app repo.
# Clone Repo
E:\div_code
λ git clone https://[email protected]/snippsat/weather-app.git
Cloning into 'weather-app'...
remote: Counting objects: 60, done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 60 (delta 20), reused 0 (delta 0)
Unpacking objects: 100% (60/60), done.
Checking connectivity... done.

# cd in
E:\div_code
λ cd weather-app

# Run the app
E:\div_code\weather-app (master)
λ python app.py
 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 334-187-997
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)