In this assessment your goal is to expand upon the rails assessment you did previously. The goal is to add dynamic features that are possible only through jQuery and a JSON Api for your app. Do not use remote: true
in this application`
- Must render at least one index page via jQuery and an Active Model Serialization JSON Backend.
- Must render at least one show page via jQuery and an Active Model Serialization JSON Backend.
- The rails API must reveal at least one
has-many
relationship in the JSON that is then rendered to the page. - Must use your Rails API and a form to create a resource and render the response without a page refresh.
- Must translate the JSON responses into Javascript Model Objects. The Model Objects must have at least one method on the prototype. Formatters work really well for this.
- Make the changes to your existing Rails assessment repo.
- Add the spec-js.md file from this repo to the root directory of the project, commit it to Git and push it up to GitHub.
- Submit that repo to the assessment immediately.
- Build your app there. Make sure to commit early and commit often. Commit messages should be meaningful (clearly describe what you're doing in the commit) and accurate (there should be nothing in the commit that doesn't match the description in the commit message). Good rule of thumb is to commit every 3-7 mins of actual coding time. Most of your commits should have under 15 lines of code and a 2 line commit is perfectly acceptable. This is important and you'll be graded on this.
- Record at least a 30 min coding session. During the session, either think out loud or not. It's up to you. You don't need to submit it, but we may ask for it at a later time.
- Submit a video of how a user would interact with your working application.
- Make sure to check each box in your spec.md (replace the space between the square braces with an x) and explain next to each one how you've met the requirement before you submit your project.
- Submit the url to your github project
- Write a blog post about the project and process.
Unlike the rest of the curriculum, if you have any questions about your assessment or need help with it, please don’t use the Ask New Question feature. Rather than working with Learn Experts, please reach out to the Learn Instructor responsible for this section instead - Mendel / mendel@flatironschool.com / learn-co slack: mendel.
We should reach out to you soon to schedule a pairing process. If you don't hear from us in 48 hours after submission, reach out to us on Slack!
- Explain your code from execution point to exit point. We're making sure you wrote it and understand how it works, nothing else. 5-10 minutes
- Write tests together. You'll be responsible for making tests pass, not writing test code. However, you'll be expected to provide expected return data of methods. You'll need to know how your code should work, not rspec or testing. 20-30 minutes
- Refactor code. 20-30 minutes
- Extend the application with a new feature, more data, a different domain etc. 20-30 minutes
- Submit an improved version.
- Write a README.md.
- Use the best vocabulary you can. Technical terms allow for you to be more precise which makes conversations about code much easier.
- If you make a mistake, correct yourself! We all make mistakes, I promise.
- Trust yourself
- Trust us
- Think on your feet. Feel free to look things up while you're pairing with us. You'll be asked to expand on concepts you implemented and you will be pushed to the edge of your knowledge.
- Explain the details. We're curious!
- You're going to learn a ton. We will give pointers and show you ways to improve your code. This isn't telling you that your code is wrong, it's simply us teaching. Whatever you don't quite understand will be explained
- You won't be told you're ever wrong
- You won't be yelled at, belittled, or scolded
- You won't be put on the spot without support
- There's nothing you can do to instantly fail or blow it.
- Loading Comments via GET AJAX
- Rails and AJAX, Submitting a Form
- Adding Form Fields via AJAX
- Handlebars and JS Prototypes
View Rails App with a jQuery Front End on Learn.co and start learning to code for free.