v0.2.0.1
This project is part of a collection of projects and tools maintained by OpenCo.ca
Development of these tools requires the use of git and text editor. We recommend Visual Studio Code and when you are ready Vim.
All steps work best in a Debian based Linux distribution such as Ubuntu or Elementary OS.
All steps should also work on macOS.
We recomend you have git and the following packages installed on in a Debian based Linux. Installing things in Debian based systems is quick with a package manager. Open your terminal and enter the following two commands:
sudo apt-get update
#This updates your package manager's directory of programs
sudo apt-get install git git-flow zlib1g-dev
# This installs git, git-flow, and zlib1g-dev
Note: the command
sudo
allows you to run a command as theroot
or Admin user. On linux systems the root user is a special user account used for system administration. The name root may have originated because root is the only user account with permission to modify the root directory of a Unix system. This directory was originally considered to be root's home directory, but the UNIX Filesystem Hierarchy Standard now recommends that root's home be at /root.
It's simpler to work with repos if you have your ssh key setup.
username@username-computername:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_rsa):
Created directory '/home/username/.ssh'.
Enter passphrase (empty for no passphrase):
If you are not dealing with a high sercurity project and you trust your computer you can put no passphrase.
To show your ssh key use command cat /home/username/.ssh/id_rsa.pub
Your ssh key can be used to securly connect to servers and services. To use your ssh key with Github follow the always up to date Github SSH Guide.
Choose or make a directory for your local repos.
I recomend ~/Documents/Projects
Fork and Clone the folowing repos to your machine
- https://github.com/opencoca/startr
- https://github.com/opencoca/simpleweb
- https://github.com/opencoca/lt2d_school
- https://github.com/opencoca/lt2d_school_admin
Note: our team uses master repos with submodules. If work on many projects with our team ask your supervisor if you're eligable for access to parent repos
To clone a repo to directory of your choosing open up your terminal, cd (or pushd) to the directory of your choosing and run :
git clone https://github.com/opencoca/startr
git clone [email protected]:username/project.git
(found by clicking dropdown on download)
git config --global user.email "[email protected]"
git config --global user.name "YourName"
git pull
git status
git diff
git add README.md
git status
git commit
git push
Pyenv lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well. Pipenv is a tool that aims to bring the best of all packaging worlds (bundler, composer, npm, cargo, yarn, etc.) to the Python world. Pipenv and Pyenv work well together allowing you to work on projects that have differing needs.
https://github.com/pyenv/pyenv-installer
source-shell
$ curl https://pyenv.run | bash
pyenv.run
redirects to the install script in this repository and the invocation above is equivalent to:
$ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
Restart your shell so the path changes take effect:
source-shell
$ exec $SHELL
You can now begin using pyenv.
Pipenv is primarily meant to provide users and developers of applications with an easy method to setup a working environment.
Install pipenv using python's pip
pip install --user pipenv
Copyright 2019–2023 12787326 Canada Inc.
Licensed under the AGPLv3: https://opensource.org/licenses/agpl-3.0