-
This repo is meant to enrich our selves in open source contribution to projects and how to work on a project as a team
-
phonebook console application is a project for python4dev group to help master skills the project contains
-
when the program is running user should be able to add, delete, edit and read contacts from contact list.
-
this app is to be built using python using Object Oriented Programming
- fork this repo
- clone a local copy using.
git clone <your_forked_repo_url.git
- cd into
pyhtonPhoneBook
- Add upstream to easily grab updates
git remote add upstream https://github.com/Nicodona/pyhtonPhoneBook
- create a branch and checkout- run
git checkout -b <your_branch_name
- OS windows: Download MySQL Installer
- Open installer and download the following or manually by clicking on each tool below
- Connector/Python - 8.0.26 . Make sure to select OS
- MySQL server - 8.0.26
- On successful installation of MySQL server, Setup the server following the below procedure -
## Server configuration on windows
- MySQL Workbench - 8.0.26
- OS Linux ubuntu - Steps
- Connector/Python - 8.0.26. Make sure to select OS
- Install MySQL Workbench - 8.0.26
- OS Linux other - Follow above for Ubuntu and create an issue with the message
Tool configuration failed for <Your_OS_Name>
if it fails.
Open mysqlserver
- type$networking
- AuthMethod
- create a simple password e.g
myserver
ortestserver
orphonebookserver
or any other memorable password. We shall update this value in production
pip install -r requirements.txt
cd
topyhtonphonebook
- create a
.env
file with the followingHOST=<YOUR_HOST_NAME> USER=<DB_USERNAME> PASSWORD=<USER_PASSWORD>
host
anduser
could belocahost
androot
respectively (in my case ofcourse)
cd
topyhtonphonebook/config
- OS windows: run
python dbconfig.py
. Don't modify this file. Rather create a descriptive issue if you would want the file to be modified - OS Linux - ubuntu or other Linux distri: run
python3 dbconfig.py
Reminder: pyhtonphonebook/phonebook.py
is the only file to edit here.
- start writing your code 😄
- when done run:
git add .
git commit -m "your commit message"
git push origin <your_branch_name
- navigate to your remote forked copy and create a Pull Request (PR)