Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clone a project
#1
How do i clone a project from github ? What are the steps required to run the project after downloading from github
Reply
#2
(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)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Clone with pywebcopy with proxy MeMyselfAndI 1 2,547 Oct-29-2020, 08:21 PM
Last Post: Larz60+
  Clone GitHub to Local sridhar 2 1,890 Apr-21-2020, 07:57 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020