Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDaniel Medina
13,863 PointsLocal Code Challenge: Building Our Service | Zipping and Uploading
Hey everyone,
I feel like I'm at my wit's end with this local code challenge. I pass all of the tests locally on my system, but when I try to upload my zipped archive it tells me that some of my tests have failed.
Here's what I've tried so far:
Simply zipping everything (except the packages folder) and uploading. This went over the file limit and did not work.
-
Deleting the following folders:
- bin - obj - node_modules
I then tried zipping and uploading my solution including the much smaller src directory. This didn't work.
I tried deleting the bin and obj folders from: IssueTracker, IssueTrackerShared, IssueTrackerTests. Then I re-zipped and tried uploading the files. It still says that it doesn't pass the tests.
Am I missing something? What is it that I'm supposed to be uploading if not these files? I would really appreciate some help on this one as it's driving me nuts.
2 Answers
Daniel Medina
13,863 PointsOK, I got the challenge working.
Here's what I did::
- Examine the structure of the original downloaded code. Pay special attention to directory structure and names.
- Solve the challenge and be sure to go green on all of our tests.
- Click "Save All" before exiting Visual Studio 2017.
- With our added code, match the directories in the original downloaded code.
- Once we're done cleaning up our directories with our modified code, archive it as a .ZIP file.
- Upload the file to Treehouse
Zhaopeng Wang
Full Stack JavaScript Techdegree Graduate 32,210 PointsThere is another way using Gulp task runner from the project. It will run the project.msbuild file in the file directory and generate a project.zip file for you.
Then you need to upload that zip file. You might need to install node.js, npm at your machine.
In your command line tool, run npm install gulp-cli -g
to install Gulp globally.
Then goes to the Issue Tracker project directory, such as......./src/IssueTracker
Run gulp default