As part of your daily routine in 301, you will be executing a code challenge. To do so properly requires a specific repository, properly setup. In this repository, you will complete your daily work.
Please follow these steps:
data-structures-and-algorithms
.cd
into the new repo in your terminal.cd javascript
- to enter the javascript folder.npm install
- which will install some libraries that we’ll use to help you test out your code challenges.npm test
- which will do a trial run. 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
git add -f package-lock.json
-f
flag is a one-time setup step for this file.git commit -m "Initialized JavaScript Challenges"
git push origin main
data-structures-and-algorithms
repository, where you should see what you pushedOnce this process completes, you will have a freshly setup “DS&A” folder structure on your system, and sync’d to GitHub.
What are those tests? We will cover that in lecture as well as how to use this repository on a daily basis. At this point, our goal is prove that it’s properly setup.