Loading
Lesson 02
Courses / Quick Start Introduction to Sails
Installing Sails and Generating a Project

Summary

Lecture Summary: Installing Sails and Generating a Project

In this lecture, we learn how to install Sails and generate a new project. Here's a summary of the key points:

  1. Open the Terminal: Begin by opening your terminal.

  2. Check Node Installation: Ensure that Node.js is installed. The speaker is using Node version 6.11 and npm version 3.

  3. Install Sails Globally: Use the command:

    npm install -g sails
    

    This command installs Sails globally on your machine.

  4. Sails Version: The lecture focuses on Sails version 0.12. For more information, you can visit:

  5. Ignore Warnings: While installing, you might encounter warnings, but they can be ignored.

  6. Generate a New Project: After Sails is installed, create a new project using:

    sails new sails-quickstart
    

    This command generates a new Sails application named "sails-quickstart."

  7. Navigate to the Project Directory: Change directories to your newly created project:

    cd sails-quickstart
    
  8. Next Steps: The next lecture will cover an overview of the application structure for a Sails app.

This concludes the lecture on installing Sails and creating a new project.

Video Transcript

In this lecture we are going to learn how to install sales and how to generate a project. First let's open up the terminal. So before install sales we have to make sure we have node install. Alright. I am using node version 6.11 with npm3. Once you get that you can just say npm install dash g for global install sales. So the sales command will allow us to generate a project. So it's going to take a little bit to install. So we are installing sales version 0.12. This course is about sales version 0.12. If you want to learn more about sales you can always go to its website and take a look. Have very good documentation there. If you are on github they also have their repository here. github.com slash boulder dash slash sales. Another dash is one of the creators of sales. And sales is also npm module the one that we are installing right now. In this course version 0.12.14. You might get these warnings but it's okay. Alright so almost there. Okay we got sales installed. Globally now what we have to do is call on that command sales okay. And then new and the name of your project. So let's call this project sales like quick start sales dash quick start. That's the project name right here. So sales is going to generate the app. You may ignore this thing too. So sales is going to create a project directory with the same name as the project that he specified. This case sales dash quick start. Alright we got it. So it creates a new sales app called sales quick start. If I list the files in my directory I have this directory here. Let's cd to it sales quick start. And here's the generated project. So that's it for this lecture. Next lecture we're going to go through those files and have an overview of the application structure for a sales app. Until then.
No comments yet (loading...)
No comments yet (loading...)
Did you like the lesson? 😆👍
Consider a donation to support our work: