m Loopback and Vue
Key Points
- Loopback provides an automated CRUD framework with an object model
- Vue is simpler than React and Angular to code
References
Key Concepts
MANY Nodejs basic tips and tutorials
https://www.freecodecamp.org/news/search/?query=nodejs
https://flaviocopes.com/node-read-csv/
nodejs-servers-How to Start a Node Server Examples with the Most Popular Frameworks.pdf
nodejs-the-complete-guide-course-at-udemy-.pdf
https://www.freecodecamp.org/news/how-to-build-a-todo-app-with-react-typescript-nodejs-and-mongodb/
https://www.freecodecamp.org/news/create-a-professional-node-express/
https://www.freecodecamp.org/news/node-js-production-checklist/
https://www.freecodecamp.org/news/stripe-and-node-js-4-best-practices-and-examples/
Node.js debug
https://www.freecodecamp.org/news/watch-sockets-with-this-grunt-plugin/
https://www.freecodecamp.org/news/node-js-debugging/
Node AWS
https://www.freecodecamp.org/news/how-to-reuse-packages-with-aws-lambda-functions-using-amplify/
Loopback Concepts
Inside a Loopback application
https://loopback.io/doc/en/lb4/Inside-LoopBack-Application.html
Loopback Vue CRUD example
https://strongloop.github.io/strongloop.com/strongblog/vuejs-and-loopback/
loopback-ex-crud-vue-strongloop.github-Building a Vuejs Application with LoopBack - an Example
Loopback Todo App with Memory Data Source
https://loopback.io/doc/en/lb4/todo-tutorial.html#steps
Loopback Angular Form example
loopback-ex-angular-simple-list-Building a Frontend Application with LoopBack4 and Angular.pdf
Nodejs Basics
https://www.w3schools.com/nodejs/ref_modules.asp
Node.js CLI app with OAuth security
https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs
node-cli-ex-oauth-developer.okta-Build a Command Line Application with Nodejs.pdf
Modules - builtin and custom
https://www.w3schools.com/nodejs/nodejs_modules.asp
Create a module that returns the current date and time:
exports.myDateTime = function () {
return Date();
};
Use the exports
keyword to make properties and methods available outside the module file.
Save the code above in a file called "myfirstmodule.js
Include modules with require
var http = require('http');
var dt = require('./myfirstmodule');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write("The date and time are currently: " + dt.myDateTime());
res.end();
}).listen(8080);
Http module to create a server
Need a header record for type
Pass req, res variables to set request, get response
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write(req.url);
res.end();
}).listen(8080);
NPM package manager installed with Node.js
https://www.w3schools.com/nodejs/nodejs_npm.asp
NPM is a package manager for Node.js packages, or modules if you like.
www.npmjs.com hosts thousands of free packages to download and use.
The NPM program is installed on your computer when you install Node.js
A package in Node.js contains all the files you need for a module.
Modules are JavaScript libraries you can include in your project.
npm install mypackage
Events module
https://www.w3schools.com/nodejs/nodejs_events.asp
you can create-, fire-, and listen for- your own events.
Similar to Java beans where events are built-in with create event, addListener, fireEvent
Objects in Node.js can fire events, like the readStream object fires events when opening and closing a file:
Create eventEmitter
var events = require('events');
var eventEmitter = new events.EventEmitter();
Email module
https://www.w3schools.com/nodejs/nodejs_email.asp
Potential Value Opportunities
Potential Challenges
Candidate Solutions
Step-by-step guide for Example
sample code block