Skip to content

Instantly share code, notes, and snippets.

@ianjennings
Created June 27, 2020 17:48
Show Gist options
  • Save ianjennings/3cced36c81ca0c536142f2016806121a to your computer and use it in GitHub Desktop.
Save ianjennings/3cced36c81ca0c536142f2016806121a to your computer and use it in GitHub Desktop.

Setting up with Sails.js

00:02

My name is Ian Jennings. And today I'm going to teach you how to create an abusing sales Js.

00:07

So to get started, you need to install sales globally. Lou MPM installed sales G.

00:09

ConEmu64.exe > Cmder

npm install sails -g 

00:14

That's why we've installed to sail to the utility globally.

00:19

Paircast.exe > Paircast

00:34

All right. So now we have the land sales available to us.

00:37

And we'll navigate into this folder called sales pair cast.

00:39

ConEmu64.exe > Cmder

00:42

And then we'll create from here will create a new sales absolutely sales New out to demo That'll actually generate sales application and it gives us some options like Would you like a lot of averages, and he sails out. We're going to go to the Web, which is extremely powerful and I believed to be under documented.

01:01

I see it as a competitor to knock the next Janus.

01:10

For those of you who are watching me create this tutorial from the Metaverse. Ah, watching tutorial on how to create tutorials. You can see that the tracking has begun. So picture cast is actually is moderate folder as a detective that the APP has been created and we have a

01:20

Paircast.exe > Paircast

Watch me do it on video here

Nice verification here.

So Adam edit files within this older pair Castle actually track update that align them with the video.

01:38

So here we are just waiting for sales to install the dependencies.

01:47

I should have used the fast option looks like

01:49

But we'll just sit here and hang out. Okay. Here we go. So sales history of the dependencies and we can see that now there's a directory up. Let's go in there.

01:58

With your sales left.

02:02

ConEmu64.exe > Cmder

02:03

Sales will lift me up.

02:06

And there we go. So it's ah generated there took a second, but this is our basic sails out. Now sails again is a

02:09

Commit 634eb2091a5ea3f2d3ad26c72aa08f4ce211ba15
--- app/views/layouts/layout.ejs
+++ app/views/layouts/layout.ejs
@@ -125,6 +125,36 @@
 
     <% /* Auto-injected «script» tags: */ %>
     <!--SCRIPTS-->
+    <script src="/dependencies/sails.io.js"></script>
+    <script src="/dependencies/lodash.js"></script>
+    <script src="/dependencies/jquery.min.js"></script>
+    <script src="/dependencies/vue.js"></script>
+    <script src="/dependencies/vue-router.js"></script>
+    <script src="/dependencies/bootstrap-4/bootstrap-4.bundle.js"></script>
+    <script src="/dependencies/cloud.js"></script>
+    <script src="/dependencies/moment.js"></script>
+    <script src="/dependencies/parasails.js"></script>
+    <script src="/js/cloud.setup.js"></script>
+    <script src="/js/components/ajax-button.component.js"></script>
+    <script src="/js/components/ajax-form.component.js"></script>
+    <script src="/js/components/js-timestamp.component.js"></script>
+    <script src="/js/components/modal.component.js"></script>
+    <script src="/js/utilities/open-stripe-checkout.js"></script>
+    <script src="/js/pages/498.page.js"></script>
+    <script src="/js/pages/account/account-overview.page.js"></script>
+    <script src="/js/pages/account/edit-password.page.js"></script>
+    <script src="/js/pages/account/edit-profile.page.js"></script>
+    <script src="/js/pages/contact.page.js"></script>
+    <script src="/js/pages/dashboard/welcome.page.js"></script>
+    <script src="/js/pages/entrance/confirmed-email.page.js"></script>
+    <script src="/js/pages/entrance/forgot-password.page.js"></script>
+    <script src="/js/pages/entrance/login.page.js"></script>
+    <script src="/js/pages/entrance/new-password.page.js"></script>
+    <script src="/js/pages/entrance/signup.page.js"></script>
+    <script src="/js/pages/faq.page.js"></script>
+    <script src="/js/pages/homepage.page.js"></script>
+    <script src="/js/pages/legal/privacy.page.js"></script>
+    <script src="/js/pages/legal/terms.page.js"></script>
     <!--SCRIPTS END-->
 
     <% /* Display an overlay if the current browser is not supported.

02:12

chrome.exe > NEW_APP_NAME - Google Chrome

02:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment