This repository exists for the submission of tasks by the Dufuna-CodeCamp participants from the year 2021.
-
Clone this repository.
-
Before you start work on any task, you should do the following:
- create a new branch
- move to the newly created branch
-
On your local copy, you'll find a
submissions
directory.- create a new folder in that directory
- name the folder using the format detailed below:
- suppose your
first name
isJane
and yourlast name
isDoe
, your folder will be namedjaneDoe
.
- suppose your
-
In the folder you created that is named after you, create another folder named the topic for which you want to make a submission e.g.
aboutMe
. -
In this new folder, create a new file for the solution of the tasks, e.g
aboutMe.txt
- Open
Command Prompt
as an administrator - Navigate to the project directory (
Dufuna-CodeCamp-21
) - Once you're in the project directory, navigate to
tests\setup\winos
. This directory contains the setup files for Windows Operating System. - Type the command:
nodeinstaller.bat
(This will generate a lot of output on the screen, do not worry.) - If you do not have Python3 installed on your system, a pop-up to install python will appear on the screen. Ensure that you click the checkbox that says
Add Python to Path
. - Once python is completely installed and you see any of the following text, the setup is complete. They are:
node is available
ORPlease restart command prompt as an administrator
- After installation is complete, you need to
close the current command prompt
and open anothercommand prompt as an administrator
. - On the newly opened command prompt, Navigate to the project directory (
Dufuna-CodeCamp-21
) - Once you're in the project directory, navigate to
tests\setup\winos
. There is one more setup file you need to run - Type the command:
winrunner.bat
. When this command successfully runs, you will see an output that saysSetup is Complete!
- As an aside, ensure you have installed on your PC the latest version of Chrome.
- Open your
terminal
- Navigate to the project directory (
Dufuna-CodeCamp-21
) - Once you're in the project directory,
- navigate to
tests/setup/macos
- for Mac OS users - navigate to
tests/setup/linux
- for Linux users. This directories contain the setup files for either Operating Systems.
- navigate to
- Type the command:
./installer.sh
. This will generate a lot of output on the screen and at some pointrequest for your password
enter in your system's password, and wait till installation is complete.
- As an aside, ensure you have installed on your PC the latest version of Chrome.
If you want to make a submission for a week where the topic was HTML
, you'll need to take the following steps:
-
Open your
terminal
orgit bash
- forlinux or MacOS
users.git bash
- forWindows
users.
-
Navigate to the project folder (In this case
Dufuna-CodeCamp-21
) -
Create and move to a new branch if this is your first pull request, if not, use your former branch name and work with it.
-
Navigate to the folder that has your name inside the
submissions
folder. -
Create a folder for the task using the topic of the week as the name. In this case, the folder will be named
html
because that's the topic for the week. -
Put the necessary files/content for the task into the newly created folder.
-
Navigate to the
tests
folder in your local project -
Because we're working on the task for
HTML
, navigate toHTML
folder inside the tests folder.- run the command
./test.sh
- run the command
-
Follow the prompts given on the command line
-
The last two steps above run some tests on your submission and provide the result of this test on your
terminal
orgit bash
as the case may be.- Ensure that all tests pass for you, if it doesn't, you'll be able to figure out where the mistake is from (feedback is given when the test is run).
- Fix this mistakes in your submission files and run the test again.
-
This step is optional
- run
git status
to check the state of your working directory
- run
-
Add new or modified files to git if needed using the
git add .
command or specifically state the file to be added usinggit add <filename>
command (where<filename>
is replaced by the name of the file) -
Commit your changes
-
Push this changes to the remote repository. If your branch is perhaps named
html_task
then your git command to push would be likegit push origin html_task
. -
Go to the Github repository online and make a pull request.
- When you create a PR, you need to inform us of what you have done. e.g if Jane wants to create a PR to submit a solution for the
HTML
topic, the description would go thus;- I added a index.html file that contains solution to the HTML task
- I updated the solution to the last task in lastTask.txt
- Your PR title must contain your program abbreviation and task number in a square bracket, and a description. It should be of the format:
[DFFE-5] Style the customer signup page
- Before starting a new task, always update your
master
branch locally by pulling usinggit pull origin master