If you have not already created your data-structures-and-algorithms repository, Please follow these steps:
-
Create a new, empty repository called
data-structures-and-algorithms
-
Clone this repository to your machine, in your
codefellows
folder -
cd
into the repo in your terminal -
Execute this command from your terminal, which will install a number of things for you:
bash <(curl -s https://raw.githubusercontent.com/codefellows/setup-guide/master/code-301/code-challenges/bin/dsa.sh)
-
When it's done, verify that things are working properly by running a test. Enter this command:
npm test
- You should see a message like the following, indicating that things are setup properly and tests are passing
PASS code-challenges/proof-of-life.test.js proof of life ✓ lives (2 ms) ----------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------|---------|----------|---------|---------|------------------- All files | 0 | 0 | 0 | 0 | ----------|---------|----------|---------|---------|------------------- Test Suites: 1 passed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: 0.892 s
-
Complete an "ACP"
git add .
git commit -m "Created Data Structures Repo"
git push origin master
-
Return to GitHub and refresh the view of your
data-structures-and-algorithms
repository, where you should see what you pushed -
Go to the "Actions" tab
-
You should see a green check mark on your most recent commit, showing that your tests are passing just as they were when you ran them from the terminal
Once this process completes, you will have a freshly setup "DS&A" folder structure on your system, and sync'd to GitHub.
Under the data-structures-and-algorithms
repository, at the top level is a folder called code-challenges
Each day, you'll add one new file to this folder to do your work for the day's assigned code challenge
- Please follow the instructions specific to your 401 language, which can be found in the directory below, matching your course.