In database terminology primary key refers to the column in a table that's intended to be the primary way of identifying rows. Each table must have exactly one, and it needs to be unique. This is usually some kind of a unique identifier associated with objects presented by the table, or if such an identifier doesn't exist simply a running ID number (which is incremented automatically).
Follow the next steps to init your project in your own Gitlab or Github account. You must create just one repository per group. Rest of the team members must be given access to this repo.
- Open the URL of course project either in GitLab or Github
- Press the fork button at the top of the page and follow instructions
- Change the name of the project.
- In GitLab go to
Settings>General>Project name
- In Github go to
Settings>Repository name
Clone
the project in your computer. Clone URL appears at the top right corner.- If you want to use login and password for
pulling
andpushing
use the HTTPS option - If you want to use a private key use the SSH option. You can follow instructions on how to setup a private key in Gitlab or how to setup a private key in Github.
Documentation must be written in the project Wiki:
- In Gitlab: https://gitlab.com/programmable-web-project-/pwp-/wikis/home
- In Github: https://github.com/programmable-web-project-unioulu/PWP/wiki
However, when you fork the repository the Wiki is not copied. Wiki is created in an additional repository. You have two options to copy the wiki in your own project.
OPTION 1: Not that much experience with GIT
What we need to do is to clone the wiki that we provide in your own computer and then move the content of this wiki to the wiki on your own Gitlab/Github project.
What we need to do is to clone the wiki that we provide in your own computer and then move the content of this wiki to the wiki on your own Gitlab/Github project.
- Create a new folder in your computer, for instance name it
originalproject
. Clone the Wiki provided by the course staff inoriginalproject
. Clone URLs can be found in the following links: - In Github:https://github.com/programmable-web-project-unioulu/PWP/wiki
- In Gitlab: https://gitlab.com/programmable-web-project-/pwp-/wikis/home
- Create a new folder anywhere in your file system. For instance name it
myproject
- Clone in
myproject
the Wiki of your personal GIT project (should be currently empty). The URL is either in the Clone this wiki locally (Github) or Clone repository (Gitlab). - Copy all the content from
originalproject
intomyproject
. Do not move the hidden .git folder - Using the GIT bash
cd
tomyproject
. - Execute the following GIT commands:
git add --all
git commit -m "Initial Commit"
git push origin master
You can now edit your Project Work Report either using the Web interface or using your local computer and pushing the changes.
OPTION 2: Some experience with Git
This option allows you synchronize with the course Wiki in case we need to do some changes during the course.
- Create a new folder for your Wiki. For instance, name it
myproject
. - Clone in this folder the Wiki of your personal GIT project (It should be empty right now). The URL is either in the Clone this wiki locally (Github) or Clone repository (Gitlab).
- Create a new remote. You must use the URL of the course project Wiki. After that do a
pull
to that remote in order to copy the Project Work Report. Solve any conflicts that appear, usually in thehome.md
file. After thatcommit
all changes and do apush
to your own project's wiki repo. Following commands will perform these tasks. - In Gitlab:
git remote add pwp https://gitlab.com/programmable-web-project-/pwp-.wiki.git
git remote -v
git pull --allow-unrelated-histories pwp master
git add --all
git commit -m "Initial commit"
git push origin master
- In Github:
git remote add pwp https://github.com/programmable-web-project-unioulu/PWP.wiki.git
git remote -v
git pull --allow-unrelated-histories pwp master
git add --all
git commit -m "Initial commit"
git push origin master