On September 14th, 2017, we published revised versions of our Privacy Policy, Terms of Service and Website Use Policy and published a Cookie Policy. Your continued use of Lynda.com means you agree to these revised documents, so please take a few minutes to read and understand them.

Exercise 2: Enhancing your build tools

Keyboard Shortcuts

In this exercise, you must add an NPM script as a shortcut for the Sequelize migrate command, and uglify the JavaScript application code during the build process with Grunt. Tasks for this exercise are in the Github project’s issues and are labeled with “exercise2”.

- Now it's time for the next exercise portion…of our morning…where you fix more stuff in the example code project.…To correspond with exercise number two,…we've got some more GitHub issues for you to take a look at.…They are tagged with exercise2.…The first one is a bit…that probably needs to be implemented…before we take this thing fully to production,…which is a task to modify our collectstatic task,…which we already have,…to in addition to running our application JavaScript…through Browserify, to then run it through Uglify as well,…so compressing the JavaScript source…into a minified JavaScript source file…that we can use in production…and putting it into the public directory…just like we do with the rest of the collectstatic command.…

So, spoiler alert,…there is a Grunt plugin called Uglify,…which is probably the place to start barking up…if you wanna take a crack at that task.…So that is number one.…For bonus points actually on this task,…I didn't actually call it out here,…but if you look in the EJS template…

Resume Transcript Auto-Scroll

Author

Released

6/9/2017

Equip yourself with the knowledge to build, test, deploy, and scale Node.js web applications in production on Amazon Web Services. Kevin Whinnery helps you gain the skills you need to build a Node.js production environment that's productive in development and won't fail under a modest load. He walks through a sample project which uses a structure that's similar to what you might find in a production Node.js application, and which you can build on as a template for your own apps. He provides a general overview of several modules including Express, Sequelize, and Grunt, to help you understand the different pieces involved in application deployment.

Note: This course was created by Frontend Masters. It was originally released on 12/28/2016. We're pleased to host this training in our library.