Skip to content

The code behind ZappyCode.com 💻 Come check it out and see how it ticks!

Notifications You must be signed in to change notification settings

DevLiamJ/zappycode-django

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run zappycode locally and contribute to it?

DISCLAIMER: Following steps are for WINDOWS and Anaconda installed but procedure for different setups is similar.

  1. There must be a Fork button in the top right corner of Github page. This creates a new copy of my demo repo under your GitHub user account with a URL like: https://github.com//zappycode-django

  2. Next, clone the repo by opening the Anaconda prompt on your computer and running the command: git clone https://github.com/<YourUserName>/zappycode-django

  3. Once the repo is cloned, you need to do two things: Create a new branch by issuing the command: git checkout -b new_branch (name it whatever you like. Here, it is new_branch) Create a new remote for the upstream repo with the command: git remote add upstream https://github.com/<your username>/zappycode-django

  4. Make a virtual environment using- conda create --name zappycodeenv python=3.6.9 If virtual environment isn't activated automatically, enter: conda activate zappycodeenv

  5. Install requirements:- The Pipfile and Pipfile.lock contain dependencies. Read pipfiles to know how to use them to install dependecies. If that doesn't work, do as directed below:

    1. If you don't have pipenv, install it using pip install pipenv
    2. Enter: pipenv lock -r (You need to be present in the zappycode directory!)
    3. When it says "Successfully created virtual environment!" copy and paste Everything below virtualenv location in a text file and save it in the zappycode project cloned folder by the name of requirements.txt. 3)Enter: pip install -r requirements.txt in shell.

    Run the server using python manage.py runserver, open a browser and go to http://127.0.0.1:8000/ or localhost:8000

  6. Now you can make changes to the code.

  7. Push it! git push -u origin new_branch

  8. Once you push the changes to your repo, the Compare & pull request button will appear in GitHub. Click it!

  9. Add some info about the changes you made and click 'Create pull request' button.

  10. Done!

About

The code behind ZappyCode.com 💻 Come check it out and see how it ticks!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 83.0%
  • JavaScript 10.2%
  • HTML 3.8%
  • Python 3.0%